fedimbed: disable processing message for tw regex as it will get annoying

This commit is contained in:
Cynthia Foxwell 2025-04-17 23:11:42 -06:00
parent 16b129a875
commit c01777e2b5
Signed by: Cynosphere
SSH key fingerprint: SHA256:H3SM8ufP/uxqLwKSH7xY89TDnbR9uOHzjLoBr0tlajk

View file

@ -1809,7 +1809,7 @@ events.add("messageCreate", "fedimbed", async function (msg) {
for (const service of Object.keys(PATH_REGEX)) { for (const service of Object.keys(PATH_REGEX)) {
const regex = PATH_REGEX[service]; const regex = PATH_REGEX[service];
if (urlObj && regex.test(urlObj.pathname)) { if (urlObj && regex.test(urlObj.pathname)) {
logger.verbose("fedimbed", `Hit "${service}" for "${url}", processing now.`); if (service != "twitter") logger.verbose("fedimbed", `Hit "${service}" for "${url}", processing now.`);
try { try {
const {response, sendWait} = await processUrl(msg, url, hasSpoiler); const {response, sendWait} = await processUrl(msg, url, hasSpoiler);
if (!response) return; if (!response) return;