aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Braun <rbraun@Bobble.local>2017-11-20 12:13:17 +0100
committerRoger Braun <rbraun@Bobble.local>2017-11-20 12:13:17 +0100
commit099bac517af630a94ae049d0f357c9389144cf2b (patch)
tree805d4c7fd95616b6a1d7927d1b285c58fa4d12d1
parent092848b32b1abb165ce43e13781b7912a3e73a0c (diff)
Fix mention timeline.
-rw-r--r--src/modules/statuses.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/statuses.js b/src/modules/statuses.js
index 6d4b4843..d954b023 100644
--- a/src/modules/statuses.js
+++ b/src/modules/statuses.js
@@ -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
}