Merge pull request #7614 from annando/issue-5721

Issue 5721: Set permissions of photos in PM
This commit is contained in:
Philipp 2019-09-11 22:22:06 +02:00 committed by GitHub
commit 50cce950f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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);