From a34995a3e5f7afbbbcc41bdcc7bf472885e2c243 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 11 Sep 2019 04:08:41 +0000 Subject: [PATCH] Issue 5721: Set permissions of photos in PM --- src/Model/Mail.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Model/Mail.php b/src/Model/Mail.php index 90b54b6fc..96a549375 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);