feat: add opengraph tags
This commit is contained in:
parent
8cab186ee4
commit
97cce1d8fc
6 changed files with 117 additions and 2 deletions
|
@ -111,6 +111,14 @@ export enum ErrorCode {
|
|||
RequestTooBig = 4001,
|
||||
}
|
||||
|
||||
export const pronounDisplay = (entry: Pronoun) => {
|
||||
if (entry.display_text) return entry.display_text;
|
||||
|
||||
const split = entry.pronouns.split("/");
|
||||
if (split.length < 2) return split.join("/");
|
||||
else return split.slice(0, 2).join("/");
|
||||
};
|
||||
|
||||
export const userAvatars = (user: User | MeUser | MemberPartialUser) => {
|
||||
if (!user.avatar) return [];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue