diff --git a/app/Http/Controllers/DirectMessageController.php b/app/Http/Controllers/DirectMessageController.php index f9e49ec37..fe2753518 100644 --- a/app/Http/Controllers/DirectMessageController.php +++ b/app/Http/Controllers/DirectMessageController.php @@ -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' => [