]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/GNUsocialPhotos/actions/photoupload.php
Got database inserts for photos working.
[quix0rs-gnu-social.git] / plugins / GNUsocialPhotos / actions / photoupload.php
index aafa2d3fef147a72f1e57c580e693873c53223b4..9a643dbe6325f8daf361178c4436d33a389e1e71 100644 (file)
@@ -129,6 +129,8 @@ class PhotouploadAction extends Action
         $photo = new GNUsocialPhoto();
         $photo->path = '/file/' . $filename;
         $photo->thumb_path = '/file/thumb.' . $filename;
+        $photo->owner_id = $cur->id;
+        $photo->object_id = 'DEFAULT';
         $photo->insert();
     }