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

fix fetching mentions when no webmention file exists

This commit is contained in:
Rohan Kumar 2023-11-23 20:05:54 -08:00
parent aebc49772e
commit d8eae6f057
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -82,6 +82,10 @@ fetch_webmentions() {
} }
# fetch webmentions if we don't have a fresh copy already. # fetch webmentions if we don't have a fresh copy already.
if [ -f "$webmentions_file" ]; then
if ! check_cached_webmentions "$stale_after_minutes"; then if ! check_cached_webmentions "$stale_after_minutes"; then
fetch_webmentions fetch_webmentions
fi fi
else
fetch_webmentions
fi