mirror of
https://github.com/immich-app/discord-bot.git
synced 2026-09-30 13:32:52 +08:00
fix: mattermost suppress embeds (#628)
This commit is contained in:
@@ -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' } });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user