]> git.mxchange.org Git - friendica.git/blobdiff - mod/photos.php
Merge pull request #10228 from MrPetovan/bug/warnings
[friendica.git] / mod / photos.php
index 4ce44bedc9fe2472398402e6cc715a455db3dde8..df843846456d613522f83fa45d272402c1937a81 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -784,7 +784,7 @@ function photos_post(App $a)
        $arr['guid']          = System::createUUID();
        $arr['uid']           = $page_owner_uid;
        $arr['uri']           = $uri;
-       $arr['type']          = 'photo';
+       $arr['post-type']     = Item::PT_IMAGE;
        $arr['wall']          = 1;
        $arr['resource-id']   = $resource_id;
        $arr['contact-id']    = $owner_record['id'];