diff --git a/server/camlistored/ui/blob_item_foursquare_content.js b/server/camlistored/ui/blob_item_foursquare_content.js index 2a8c056fc..7341717b6 100644 --- a/server/camlistored/ui/blob_item_foursquare_content.js +++ b/server/camlistored/ui/blob_item_foursquare_content.js @@ -122,7 +122,7 @@ cam.BlobItemFoursquareContent.Handler = function(href, venueId, venueName, venue this.venueId_ = venueId; this.venueName_ = venueName; this.startDate_ = startDate; - this.thumber_ = venuePhotoMeta ? new cam.Thumber.fromImageMeta(venuePhotoMeta) : null; + this.thumber_ = venuePhotoMeta ? cam.Thumber.fromImageMeta(venuePhotoMeta) : null; }; cam.BlobItemFoursquareContent.Handler.prototype.getAspectRatio = function() { diff --git a/server/camlistored/ui/thumber.js b/server/camlistored/ui/thumber.js index 21308035c..3ebe5053c 100644 --- a/server/camlistored/ui/thumber.js +++ b/server/camlistored/ui/thumber.js @@ -31,7 +31,7 @@ cam.Thumber = function(pathname, opt_aspect) { cam.Thumber.SIZES = [64, 128, 256, 375, 500, 750, 1000, 1500, 2000]; cam.Thumber.fromImageMeta = function(imageMeta) { - if (!imageMeta || !imageMeta.image || !imageMeta.blobRef || !imageMeta.file || !imageMeta.file.fileName) { + if (!imageMeta || !imageMeta.image || !imageMeta.blobRef) { return null; } return new cam.Thumber(goog.string.subs('thumbnail/%s/%s', imageMeta.blobRef, (imageMeta.file && imageMeta.file.fileName) || imageMeta.blobRef + '.jpg'),