From f9b548452d494e88ab8ba7e7b6a61736f3f6bc94 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Tue, 19 Nov 2024 11:35:41 -0700 Subject: [PATCH] fedimbed.bluesky: better dm detection for adult posts --- src/modules/fedimbed.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/fedimbed.js b/src/modules/fedimbed.js index 0c09d38..7cc9384 100644 --- a/src/modules/fedimbed.js +++ b/src/modules/fedimbed.js @@ -1,4 +1,4 @@ -const {Message, PrivateChannel} = require("@projectdysnomia/dysnomia"); +const {Message} = require("@projectdysnomia/dysnomia"); const fs = require("node:fs"); const httpSignature = require("@peertube/http-signature"); @@ -474,7 +474,7 @@ async function bluesky(msg, url, spoiler = false) { warnings.push(":warning: Post marked as hidden"); } if (adult) { - if (channelNsfw || channel instanceof PrivateChannel) { + if (channelNsfw || !msg.guildID) { warnings.push(`:warning: Post contains adult content: ${Array.from(new Set(tags)).join(", ")}`); } else { return {