Update DirectMessageController

This commit is contained in:
Daniel Supernault 2020-11-18 19:51:08 -07:00
parent fa8fbb7e86
commit 4b90b1e0df
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
2 changed files with 36 additions and 2 deletions

View file

@ -307,6 +307,7 @@ class DirectMessageController extends Controller
'media' => $s->status->firstMedia() ? $s->status->firstMedia()->url() : null,
'timeAgo' => $s->created_at->diffForHumans(null,null,true),
'seen' => $s->read_at != null,
'reportId' => (string) $s->status_id,
'meta' => json_decode($s->meta,true)
];
});
@ -589,7 +590,7 @@ class DirectMessageController extends Controller
{
$profile = $dm->author;
$url = $dm->recipient->inbox_url;
$body = [
'@context' => [
'https://www.w3.org/ns/activitystreams',