aboutsummaryrefslogtreecommitdiff
path: root/src/services/status_parser/status_parser.js
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2016-11-12 23:18:27 +0100
committerRoger Braun <roger@rogerbraun.net>2016-11-12 23:18:27 +0100
commit43eb9c022d49047e898657bf41ee5a9d9b27fe27 (patch)
treeba4ee2bf2750fac1fdccf988c49cdc333f94e535 /src/services/status_parser/status_parser.js
parent05733b6bc92db37b8c7bbee792f40125714aa020 (diff)
Fix compilation error.
Diffstat (limited to 'src/services/status_parser/status_parser.js')
-rw-r--r--src/services/status_parser/status_parser.js2
1 files changed, 1 insertions, 1 deletions
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/)
})
}