1
0
Fork 0
forked from mirror/pixelfed

Update DirectMessageController, add sharedInbox support

This commit is contained in:
Daniel Supernault 2020-11-26 00:56:44 -07:00
parent bfe2341575
commit e2e32682fd
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

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