summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2010-01-22 10:12:26 -0500
committerZach Copley <zach@status.net>2010-03-02 14:25:06 -0800
commitc30f95c55cb4fcdde53c0549335d29ed6849cf95 (patch)
tree567a5fb3431890a69da31bfbf4a79c56d37dbeec /lib/util.php
parente9c127ddd869f44eafe7ae6b30d9dc69df8b863c (diff)
Updated some references to the long gnone "isEnclosure" function to the new "getEnclosure"
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php17
1 files changed, 5 insertions, 12 deletions
diff --git a/lib/util.php b/lib/util.php
index 439db581a..add1b0ae6 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -770,20 +770,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;
}
}
}