a little love for matrix: removing full url output from bot response in favor of only 1 url preview being generated by matrix clients.

This commit is contained in:
2026-05-11 09:13:38 +02:00
parent f608724968
commit c1bd5c38e0

View File

@@ -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 = `<font color="${color}"><b>${rating}</b></font>`;
const formattedMsg = [
link,
e.type === 'matrix' ? `ID: ${row.id}` : link,
formattedRating,
`user: ${row.username}`,
`~${lib.formatSize(row.size)}`,