Upgrade to the latest Cataas API

They made a backwards-incompatible change when I wasn't looking :(
This commit is contained in:
Nat 2024-03-10 12:15:16 -07:00
parent bc5a5fdf65
commit 48d07472c9
Signed by: nat
GPG Key ID: B53AB05285D710D6
2 changed files with 5 additions and 5 deletions

View File

@ -80,7 +80,7 @@ const Bookmarks = (props) => {
headers: {...headers, headers: {...headers,
"Content-Type": "application/json" "Content-Type": "application/json"
}, },
body: JSON.stringify({ ...formState, remote_id: randomCat.id }) body: JSON.stringify({ ...formState, remote_id: randomCat._id })
}); });
// Update the category list in case a new one was added // Update the category list in case a new one was added
@ -112,7 +112,7 @@ const Bookmarks = (props) => {
<div> <div>
<img className = "random-image center-box-inner" <img className = "random-image center-box-inner"
src = { randomCat != null src = { randomCat != null
? cataas(randomCat.url) ? cataas("/cat/" + randomCat._id)
: null : null
} }
alt = { randomCat != null alt = { randomCat != null

File diff suppressed because one or more lines are too long