1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-10 00:12:09 +00:00

Fix webmention issues for extended offline periods

It was still broken augh. This'll do the trick.
This commit is contained in:
Rohan Kumar 2023-11-25 12:59:55 -08:00
parent 074620f70e
commit 2e10fce294
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -32,7 +32,7 @@ check_cached_webmentions() {
echo 'Using cached webmentions' echo 'Using cached webmentions'
skip_check=1 skip_check=1
exit_status=0 exit_status=0
return 0 exit 0
fi fi
return 1 return 1
fi fi
@ -71,7 +71,7 @@ verify_webmentions() {
# use the token to fetch all webmentions. # use the token to fetch all webmentions.
fetch_webmentions() { fetch_webmentions() {
echo 'Fetching webmentions' echo 'Fetching webmentions'
token_response="$(token)" token_response="$(token)" || return 1
"$curl_wrapper" --compressed -H "Authorization: Bearer $token_response" "$webmentions_url" -o "$webmentions_file.tmp" || return 1 "$curl_wrapper" --compressed -H "Authorization: Bearer $token_response" "$webmentions_url" -o "$webmentions_file.tmp" || return 1
if verify_webmentions; then if verify_webmentions; then
mv "$webmentions_file.tmp" "$webmentions_file" mv "$webmentions_file.tmp" "$webmentions_file"