forked from AkkomaGang/akkoma-fe
Fix mention timeline.
This commit is contained in:
parent
092848b32b
commit
099bac517a
1 changed files with 1 additions and 1 deletions
|
@ -249,7 +249,7 @@ const addNewStatuses = (state, { statuses, showImmediately = false, timeline, us
|
|||
result.body = action.text // there's a problem that it doesn't put a space before links tho
|
||||
|
||||
// Shows first attached non-nsfw image, if any. Should add configuration for this somehow...
|
||||
if (action.attachments.length > 0 && !action.nsfw &&
|
||||
if (action.attachments && action.attachments.length > 0 && !action.nsfw &&
|
||||
action.attachments[0].mimetype.startsWith('image/')) {
|
||||
result.image = action.attachments[0].url
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue