]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
if there is oembed data for a file/link, consider that link to have an attachment
authorCraig Andrews <candrews@integralblue.com>
Fri, 26 Mar 2010 22:13:45 +0000 (18:13 -0400)
committerCraig Andrews <candrews@integralblue.com>
Fri, 26 Mar 2010 22:13:45 +0000 (18:13 -0400)
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;