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

Don't send webmentions to archive.is

This commit is contained in:
Rohan Kumar 2021-02-22 21:10:10 -08:00
parent 4f9250c69e
commit edfcb63c0f
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -80,7 +80,7 @@ mentions.json: hugo
static-webmentions find
mv mentions.json mentions.json.unfiltered
# filter the webmentions a bit; jq offers more flexibility than config.toml
jq '[ .[] | select(.Dest|test("https://(git.sr.ht/~seirdy/seirdy.one/log/master|seirdy.one|web.archive.org|en.wikipedia.org|matrix.to|([a-z]*.)?reddit.com|github.com)") | not) ]' <mentions.json.unfiltered >mentions.json
jq '[ .[] | select(.Dest|test("https://(git.sr.ht/~seirdy/seirdy.one/log/master|seirdy.one|web.archive.org|archive.is|en.wikipedia.org|matrix.to|([a-z]*.)?reddit.com|github.com)") | not) ]' <mentions.json.unfiltered >mentions.json
rm mentions.json.unfiltered
.PHONY: deploy-html