diff options
Diffstat (limited to 'plugins/GNUsocialPhotos/actions/photoupload.php')
-rw-r--r-- | plugins/GNUsocialPhotos/actions/photoupload.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/GNUsocialPhotos/actions/photoupload.php b/plugins/GNUsocialPhotos/actions/photoupload.php index aafa2d3fe..9a643dbe6 100644 --- a/plugins/GNUsocialPhotos/actions/photoupload.php +++ b/plugins/GNUsocialPhotos/actions/photoupload.php @@ -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(); } |