1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 08:14:38 -05:00

add pronoun support :3

This commit is contained in:
Ashley //// 2024-04-02 21:44:19 +00:00
parent 1c94951b92
commit ff19f082ee

View file

@ -306,6 +306,8 @@ module.exports = function (app, config, renderTemplate) {
)}/${ID}/?hl=en-US`; )}/${ID}/?hl=en-US`;
const channelINVUrl = `${apiUrl}${ID}/`; const channelINVUrl = `${apiUrl}${ID}/`;
const checkPronoun = async (id) => (await (await fetch('https://codeberg.org/ashley/poke-pronouns-db/raw/branch/main/pronouns.json')).json())[id] || `no pronouns set`;
const pronoun = await checkPronoun(ID);
var [tj, shorts, playlist, stream, c, cinv] = await Promise.all([ var [tj, shorts, playlist, stream, c, cinv] = await Promise.all([
getChannelData(channelUrl), getChannelData(channelUrl),
@ -364,6 +366,7 @@ module.exports = function (app, config, renderTemplate) {
cinv, cinv,
convert, convert,
turntomins, turntomins,
pronoun,
media_proxy_url: media_proxy, media_proxy_url: media_proxy,
dnoreplace, dnoreplace,
getThumbnailUrl, getThumbnailUrl,