diff --git a/layouts/partials/webmentions.html b/layouts/partials/webmentions.html index b419ffb..83db1bc 100644 --- a/layouts/partials/webmentions.html +++ b/layouts/partials/webmentions.html @@ -81,7 +81,8 @@ {{- if findRE `^https://brid.gy/[^/]*/mastodon` $webmention.source -}}

This comment may have major formatting errors that could impact screen reader comprehension.

{{- end -}} -

{{ $webmention.content | replaceRE `^@Seirdy(@pleroma.envs.net)? ?` ""}}

+

{{ $webmention.content | replaceRE `^@Seirdy(@pleroma.envs.net)? ?` "" | replaceRE ` \n` ` +`}}

{{- end -}} {{- end }} diff --git a/scripts/populate-webrings.sh b/scripts/populate-webrings.sh index e0a63ab..e2e033b 100755 --- a/scripts/populate-webrings.sh +++ b/scripts/populate-webrings.sh @@ -89,11 +89,10 @@ netizens() { printf 'Netizens,' { curl -sSL --compressed https://netizensring.link/onionring-variables.js \ - | grep -C 1 https://seirdy.one/ | sd -s '];' "'https://netizensring.link/,'" - echo "'null'," - } | sd 'https://seirdy.one/,?' 'https://netizensring.link/,' \ - | sd "\n|'" '' | trim_trailing_comma - echo + | grep -C 1 https://seirdy.one/ + } | sd 'https://seirdy.one/,?' 'https://netizensring.link/' \ + | sd "\n|'|\r" '' | trim_trailing_comma + echo ',null' } print_csv_values() {