summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2010-03-26 18:13:45 -0400
committerCraig Andrews <candrews@integralblue.com>2010-03-26 18:13:45 -0400
commit1bf27de9b9b8c7f4f6e67280805c61d85cb1e45c (patch)
tree4b125f82e12d50af5b776a1ba065d57a75ef8a0f /lib/util.php
parentc9a3916c34f4413167b6afccac0d05a24754a5fb (diff)
if there is oembed data for a file/link, consider that link to have an attachment
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index 795997868..f12cdd239 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -803,7 +803,7 @@ function common_linkify($url) {
}
if (!empty($f)) {
- if ($f->getEnclosure()) {
+ if ($f->getEnclosure() || File_oembed::staticGet('file_id',$f->id)) {
$is_attachment = true;
$attachment_id = $f->id;