From 43eb9c022d49047e898657bf41ee5a9d9b27fe27 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Sat, 12 Nov 2016 23:18:27 +0100 Subject: [PATCH] Fix compilation error. --- src/services/status_parser/status_parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/status_parser/status_parser.js b/src/services/status_parser/status_parser.js index 0eb3e75f..f1d113dd 100644 --- a/src/services/status_parser/status_parser.js +++ b/src/services/status_parser/status_parser.js @@ -4,7 +4,7 @@ export const removeAttachmentLinks = (html) => { return sanitize(html, { allowedTags: false, allowedAttributes: false, - exclusiveFilter: ({ tag, attribs: { class: klass } }) => tag === 'a' && klass.match(/attachment/) + exclusiveFilter: ({ tag, attribs }) => tag === 'a' && attribs.class.match(/attachment/) }) }