diff options
author | Craig Andrews <candrews@integralblue.com> | 2010-03-26 18:13:45 -0400 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2010-03-26 18:13:45 -0400 |
commit | 1bf27de9b9b8c7f4f6e67280805c61d85cb1e45c (patch) | |
tree | 4b125f82e12d50af5b776a1ba065d57a75ef8a0f /lib | |
parent | c9a3916c34f4413167b6afccac0d05a24754a5fb (diff) |
if there is oembed data for a file/link, consider that link to have an attachment
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util.php | 2 |
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; |