mirror of
https://github.com/wassname/talk.git
synced 2026-07-26 13:37:38 +08:00
fix: strip out 0xAD from the comment body before testing for links
This commit is contained in:
@@ -11,7 +11,7 @@ module.exports = (
|
||||
},
|
||||
}
|
||||
) => {
|
||||
if (premodLinksEnable && linkify.test(comment.body)) {
|
||||
if (premodLinksEnable && linkify.test(comment.body.replace(/\xAD/g, ''))) {
|
||||
// Add the flag related to Trust to the comment.
|
||||
return {
|
||||
status: 'SYSTEM_WITHHELD',
|
||||
|
||||
Reference in New Issue
Block a user