From 91761034d6f03d34d5a606b45792423260f2e24a Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Thu, 30 Jan 2025 15:23:52 -0700 Subject: [PATCH] fedimbed: pixelfed support --- src/modules/fedimbed.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/modules/fedimbed.js b/src/modules/fedimbed.js index 9612768..61b3e65 100644 --- a/src/modules/fedimbed.js +++ b/src/modules/fedimbed.js @@ -28,6 +28,7 @@ const PATH_REGEX = { gotosocial: /^\/@(.+?)\/statuses\/[0-9A-Z]+\/?/, lemmy: /^\/post\/\d+\/?/, honk: /^\/u\/(.+?)\/h\/(.+?)\/?/, + pixelfed: /^\/p\/(.+?)\/(.+?)\/?/, cohost: /^\/[A-Za-z0-9]+\/post\/\d+-[A-Za-z0-9-]+\/?/, bluesky: BSKY_POST_REGEX, }; @@ -43,6 +44,7 @@ const PLATFORM_COLORS = { lemmy: 0x14854f, birdsitelive: 0x1da1f2, iceshrimp: 0x8e82f9, // YCbCr interpolated as the accent color is a gradient + pixelfed: 0x10c5f8, cohost: 0x83254f, bluesky: 0x0085ff, }; @@ -59,6 +61,20 @@ const BSKY_DOMAINS = [ "bskyx.app", ]; +//eventually:tm: +/*const TW_DOMAINS = [ + "tw.c7.pm", + "tw.counter-strike.gay", + "twitter.com", + "x.com", + "fxtwitter.com", + "fixupx.com", + "vxtwitter.com", + "fixvx.com", + "stupidpenisx.com", + "girlcockx.com", +];*/ + const domainCache = new Map(); domainCache.set("cohost.org", "cohost"); // no nodeinfo