fedimbed.bluesky: better dm detection for adult posts
This commit is contained in:
parent
8382ff139d
commit
f9b548452d
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
const {Message, PrivateChannel} = require("@projectdysnomia/dysnomia");
|
const {Message} = require("@projectdysnomia/dysnomia");
|
||||||
|
|
||||||
const fs = require("node:fs");
|
const fs = require("node:fs");
|
||||||
const httpSignature = require("@peertube/http-signature");
|
const httpSignature = require("@peertube/http-signature");
|
||||||
|
@ -474,7 +474,7 @@ async function bluesky(msg, url, spoiler = false) {
|
||||||
warnings.push(":warning: Post marked as hidden");
|
warnings.push(":warning: Post marked as hidden");
|
||||||
}
|
}
|
||||||
if (adult) {
|
if (adult) {
|
||||||
if (channelNsfw || channel instanceof PrivateChannel) {
|
if (channelNsfw || !msg.guildID) {
|
||||||
warnings.push(`:warning: Post contains adult content: ${Array.from(new Set(tags)).join(", ")}`);
|
warnings.push(`:warning: Post contains adult content: ${Array.from(new Set(tags)).join(", ")}`);
|
||||||
} else {
|
} else {
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in a new issue