From c1bd5c38e0612cc296e72095261d76ebd163d673 Mon Sep 17 00:00:00 2001 From: Kibi Kelburton Date: Mon, 11 May 2026 09:13:38 +0200 Subject: [PATCH] a little love for matrix: removing full url output from bot response in favor of only 1 url preview being generated by matrix clients. --- src/inc/trigger/f0ckgag.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/inc/trigger/f0ckgag.mjs b/src/inc/trigger/f0ckgag.mjs index 073679d..729b81e 100644 --- a/src/inc/trigger/f0ckgag.mjs +++ b/src/inc/trigger/f0ckgag.mjs @@ -45,7 +45,7 @@ export default async bot => { const link = `${cfg.main.url.full}/${row.id}`.replace('http://', 'https://'); const msg = [ - link, + e.type === 'matrix' ? `ID: ${row.id}` : link, ratingStr, `user: ${row.username}`, `~${lib.formatSize(row.size)}`, @@ -57,7 +57,7 @@ export default async bot => { const color = rating === 'sfw' ? '#00ff00' : (rating === 'nsfw' ? '#ff0000' : '#888888'); const formattedRating = `${rating}`; const formattedMsg = [ - link, + e.type === 'matrix' ? `ID: ${row.id}` : link, formattedRating, `user: ${row.username}`, `~${lib.formatSize(row.size)}`,