From: Craig Andrews Date: Fri, 26 Mar 2010 22:13:45 +0000 (-0400) Subject: if there is oembed data for a file/link, consider that link to have an attachment X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1bf27de9b9b8c7f4f6e67280805c61d85cb1e45c;p=quix0rs-gnu-social.git if there is oembed data for a file/link, consider that link to have an attachment --- 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;