mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 23:37:48 +01:00
add pronoun support :3
This commit is contained in:
parent
1c94951b92
commit
ff19f082ee
1 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue