diff options
Diffstat (limited to 'lib/util.php')
-rw-r--r-- | lib/util.php | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/lib/util.php b/lib/util.php index 00c21aeb2..879834a3d 100644 --- a/lib/util.php +++ b/lib/util.php @@ -595,20 +595,13 @@ function common_linkify($url) { } if (!empty($f)) { - if ($f->isEnclosure()) { + if ($f->getEnclosure()) { $is_attachment = true; $attachment_id = $f->id; - } else { - $foe = File_oembed::staticGet('file_id', $f->id); - if (!empty($foe)) { - // if it has OEmbed info, it's an attachment, too - $is_attachment = true; - $attachment_id = $f->id; - - $thumb = File_thumbnail::staticGet('file_id', $f->id); - if (!empty($thumb)) { - $has_thumb = true; - } + + $thumb = File_thumbnail::staticGet('file_id', $f->id); + if (!empty($thumb)) { + $has_thumb = true; } } } |