1
0
Fork 0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2026-03-02 02:31:35 +00:00

Fix calls to fetchChannel

Should fix subscribing to channels
This commit is contained in:
Cadence Ember 2022-08-23 10:37:43 +12:00
parent 6de9abd499
commit a2dfeb2edc
3 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
const {request} = require("./request")
const db = require("./db")
async function fetchChannel(ucid, path="channel", instance) {
async function fetchChannel(path, ucid, instance) {
function updateGoodData(channel) {
const bestIcon = channel.authorThumbnails.slice(-1)[0]
const iconURL = bestIcon ? bestIcon.url : null