From 1bf27de9b9b8c7f4f6e67280805c61d85cb1e45c Mon Sep 17 00:00:00 2001 From: Craig Andrews Date: Fri, 26 Mar 2010 18:13:45 -0400 Subject: [PATCH] if there is oembed data for a file/link, consider that link to have an attachment --- lib/util.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.php b/lib/util.php index 7959978683..f12cdd2390 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;