Merge pull request #6322 from grossermensch/patch-2

Fix error for DMs without attachment
pull/6326/head
dansup 4 days ago committed by GitHub
commit 792ca361c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -475,7 +475,7 @@ class Inbox
]
);
if (count($activity['attachment'])) {
if (count($activity['attachment'] ?? [])) {
$photos = 0;
$videos = 0;
$allowed = explode(',', config_cache('pixelfed.media_types'));

Loading…
Cancel
Save