Update DirectMessageController, add sharedInbox support

pull/2454/head
Daniel Supernault 4 years ago
parent bfe2341575
commit e2e32682fd
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -704,7 +704,7 @@ class DirectMessageController extends Controller
public function remoteDeliver($dm)
{
$profile = $dm->author;
$url = $dm->recipient->inbox_url;
$url = $dm->recipient->sharedInbox ?? $dm->recipient->inbox_url;
$tags = [
[
@ -760,7 +760,7 @@ class DirectMessageController extends Controller
public function remoteDelete($dm)
{
$profile = $dm->author;
$url = $dm->recipient->inbox_url;
$url = $dm->recipient->sharedInbox ?? $dm->recipient->inbox_url;
$body = [
'@context' => [

Loading…
Cancel
Save