only log fetch fail, if it actually failed

This commit is contained in:
ItsVipra 2023-07-15 11:14:48 +02:00
parent fe5b4584ea
commit 2a1d57f778
No known key found for this signature in database

View file

@ -61,8 +61,10 @@ export async function fetchPronouns(dataID, accountName, type) {
status = await fetchStatus(dataID);
}
log(`Fetching ${type} failed, trying notification instead.`);
if (!status) status = await fetchNotification(dataID); //fallback for glitch-soc notifications
if (!status) {
log(`Fetching ${type} failed, trying notification instead.`);
status = await fetchNotification(dataID);
} //fallback for glitch-soc notifications
let pronouns = await extractFromStatus(status);
if (!pronouns) {