mirror of
https://github.com/ItsVipra/ProToots
synced 2024-11-22 11:33:03 +00:00
return immediatly if response is bad
This commit is contained in:
parent
e8655ea76d
commit
97553400cf
1 changed files with 2 additions and 2 deletions
|
@ -87,10 +87,10 @@ async function fetchStatus(statusID) {
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
let status = await response.json();
|
|
||||||
|
|
||||||
if (!response.ok) return null;
|
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 contains a reblog get that for further processing - we want the embedded post's author
|
||||||
if (status.reblog) status = status.reblog;
|
if (status.reblog) status = status.reblog;
|
||||||
return status;
|
return status;
|
||||||
|
|
Loading…
Reference in a new issue