1
0
Fork 0
forked from mirror/pixelfed

Update StoryController

This commit is contained in:
Daniel Supernault 2021-12-04 17:46:23 -07:00
parent 19d140b020
commit cdaa153003
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -68,6 +68,11 @@ class StoryController extends StoryComposeController
'avatar' => $profile['avatar'],
'local' => $profile['local'],
'username' => $profile['acct'],
'latest' => [
'id' => $s->id,
'type' => $s->type,
'preview_url' => url(Storage::url($s->path))
],
'url' => $url,
'seen' => StoryService::hasSeen($pid, StoryService::latest($s->profile_id)),
'sid' => $s->id