fedimbed: add color and name for birdsitelive
This commit is contained in:
parent
bd50cff7c9
commit
c2bf184cf4
1 changed files with 2 additions and 0 deletions
|
@ -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 = [];
|
||||
|
|
Loading…
Reference in a new issue