matrix-art

An image gallery for Matrix
git clone git://archive.git.mtrnord.blog/MTRNord/matrix-art.git
Log | Files | Refs | README | LICENSE

commit b255a81e9c1ef6bb67038a03246f8c742915c695
parent 29c42033cce4eae8fd281dc836651393181d26bb
Author: MTRNord <mtrnord1@gmail.com>
Date:   Fri, 14 Jan 2022 21:07:15 +0100

Try tricking rss readers to render images using html like devianart does

Diffstat:
Mpages/api/posts/feed.rss.ts | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/pages/api/posts/feed.rss.ts b/pages/api/posts/feed.rss.ts @@ -86,8 +86,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse) title: image["m.text"], id: "https://" + (req.headers.host || "art.midnightthoughts.space") + "/post/" + imageEvent.event_id + "_" + image["m.file"].url, link: "https://" + (req.headers.host || "art.midnightthoughts.space") + "/post/" + imageEvent.event_id, - description: "", - content: "", + description: `<img src="${client?.downloadLink(image["m.file"].url)!}"/>`, author: [ { name: imageEvent.content.displayname, @@ -142,8 +141,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse) title: imageEvent.content["m.text"], id: "https://" + (req.headers.host || "art.midnightthoughts.space") + "/post/" + imageEvent.event_id, link: "https://" + (req.headers.host || "art.midnightthoughts.space") + "/post/" + imageEvent.event_id, - description: "", - content: "", + description: `<img src="${client?.downloadLink(imageEvent.content["m.file"].url)!}"/>`, author: [ { name: imageEvent.content.displayname,