return immediatly if response is bad

This commit is contained in:
Vipra 2023-07-13 19:45:59 +02:00
parent e8655ea76d
commit 97553400cf

View file

@ -87,10 +87,10 @@ async function fetchStatus(statusID) {
},
);
let status = await response.json();
if (!response.ok) return null;
let status = await response.json();
//if status contains a reblog get that for further processing - we want the embedded post's author
if (status.reblog) status = status.reblog;
return status;