]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/GNUsocialPhotos/actions/photoupload.php
Quick function to get an array of thumbnails for a gallery page.
[quix0rs-gnu-social.git] / plugins / GNUsocialPhotos / actions / photoupload.php
index 216f1768f00eb40a19176a5b1f37b3b4103da6d6..84caf474754aebf2bc4110f4d6e79dabe4f3f872 100644 (file)
@@ -137,7 +137,8 @@ class PhotouploadAction extends Action
         $uri = 'http://' . common_config('site', 'server') . '/file/' . $filename;
         $thumb_uri = 'http://' . common_config('site', 'server') . '/file/thumb.' . $filename;
         $profile_id = $cur->id;
-        GNUsocialPhoto::saveNew($profile_id, $thumb_uri, $uri, 'web');
+               //scorbett: the second arg below should be set to the album ID
+        GNUsocialPhoto::saveNew($profile_id, 0, $thumb_uri, $uri, 'web');
     }
 
 }