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:
parent
074620f70e
commit
2e10fce294
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue