From: Michael Date: Wed, 11 Sep 2019 04:08:41 +0000 (+0000) Subject: Issue 5721: Set permissions of photos in PM X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a34995a3e5f7afbbbcc41bdcc7bf472885e2c243;p=friendica.git Issue 5721: Set permissions of photos in PM --- diff --git a/src/Model/Mail.php b/src/Model/Mail.php index 90b54b6fc3..96a5493754 100644 --- a/src/Model/Mail.php +++ b/src/Model/Mail.php @@ -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);