]> git.mxchange.org Git - friendica.git/commitdiff
Issue 5721: Set permissions of photos in PM
authorMichael <heluecht@pirati.ca>
Wed, 11 Sep 2019 04:08:41 +0000 (04:08 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 11 Sep 2019 04:08:41 +0000 (04:08 +0000)
src/Model/Mail.php

index 90b54b6fc339abcc4c61fa4148d2cc41666d2cfa..96a54937548cb03dfed6b696d8b7733cae906d7d 100644 (file)
@@ -10,6 +10,7 @@ use Friendica\Core\Logger;
 use Friendica\Core\System;
 use Friendica\Core\Worker;
 use Friendica\Model\Item;
+use Friendica\Model\Photo;
 use Friendica\Database\DBA;
 use Friendica\Network\Probe;
 use Friendica\Util\DateTimeFormat;
@@ -119,6 +120,8 @@ class Mail
                        return -2;
                }
 
+               Photo::setPermissionFromBody($body, local_user(), $me['id'],  '<' . $contact['id'] . '>', '', '', '');
+
                $guid = System::createUUID();
                $uri = Item::newURI(local_user(), $guid);