fix: mattermost suppress embeds (#628)

This commit is contained in:
Daniel Dietzler
2026-09-11 15:14:39 -04:00
committed by GitHub
parent 386b8c1bef
commit ddda30b019
+1 -1
View File
@@ -761,7 +761,7 @@ ${formattedCode}
return;
}
if (this.hasBlacklistUrl(post.metadata.embeds.map(({ url }) => url))) {
if (this.hasBlacklistUrl(post.metadata.embeds.map(({ url }) => url).filter((url) => url))) {
await this.mattermost.updatePost({ id: post.id, props: { remove_link_preview: 'true' } });
}
}