logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe
commit: 099bac517af630a94ae049d0f357c9389144cf2b
parent: 092848b32b1abb165ce43e13781b7912a3e73a0c
Author: Roger Braun <rbraun@Bobble.local>
Date:   Mon, 20 Nov 2017 12:13:17 +0100

Fix mention timeline.

Diffstat:

Msrc/modules/statuses.js2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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 }