summaryrefslogtreecommitdiff
path: root/classes/File_oembed.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@status.net>2010-11-12 14:03:08 -0800
committerBrion Vibber <brion@status.net>2010-11-12 14:03:08 -0800
commit2c4313467f07cae059798ac500ec2a1c31953877 (patch)
treec47aeb8a6dd4c8351d956641f3f37b38ee020e43 /classes/File_oembed.php
parent65eeb7cba530e45b8d8a25644505619e8af63971 (diff)
Save oEmbed photo references as thumbnails if there's not a separate thumbnail_url entry in the return data. This fixes thumb saving for Flickr photo references.
Diffstat (limited to 'classes/File_oembed.php')
-rw-r--r--classes/File_oembed.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/File_oembed.php b/classes/File_oembed.php
index a5540ecfe..bcb2f7bac 100644
--- a/classes/File_oembed.php
+++ b/classes/File_oembed.php
@@ -120,7 +120,7 @@ class File_oembed extends Memcached_DataObject
}
}
$file_oembed->insert();
- if (!empty($data->thumbnail_url)) {
+ if (!empty($data->thumbnail_url) || ($data->type == 'photo')) {
$ft = File_thumbnail::staticGet('file_id', $file_id);
if (!empty($ft)) {
common_log(LOG_WARNING, "Strangely, a File_thumbnail object exists for new file $file_id",