fedimbed: add color and name for birdsitelive

This commit is contained in:
Cynthia Foxwell 2023-11-13 11:03:05 -07:00
parent bd50cff7c9
commit c2bf184cf4

View file

@ -35,6 +35,7 @@ const PLATFORM_COLORS = {
firefish: 0xf07a5b, // YCbCr interpolated color from the two logo colors
gotosocial: 0xff853e,
lemmy: 0x14854f,
birdsitelive: 0x1da1f2,
};
const domainCache = new Map();
@ -117,6 +118,7 @@ async function processUrl(msg, url, spoiler = false) {
let color = PLATFORM_COLORS[platform];
let platformName = platform
.replace("gotosocial", "GoToSocial")
.replace("birdsitelive", '"Twitter" (BirdsiteLive)')
.replace(/^(.)/, (_, c) => c.toUpperCase());
const images = [];