mirror of
https://github.com/ItsVipra/ProToots
synced 2024-11-22 03:23:02 +00:00
only log fetch fail, if it actually failed
This commit is contained in:
parent
fe5b4584ea
commit
2a1d57f778
1 changed files with 4 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue