]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/util.php
if there is oembed data for a file/link, consider that link to have an attachment
[quix0rs-gnu-social.git] / lib / util.php
index 795997868305ff09b2ada3614cf7a9a8d1089cf3..f12cdd239027ff2d0f45f1de357e533a891f32d1 100644 (file)
@@ -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;