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

Fix webrings and webmentions

This commit is contained in:
Rohan Kumar 2022-09-16 20:24:43 -07:00
parent 931229e5e3
commit 0fb45529c7
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479
2 changed files with 6 additions and 6 deletions

View file

@ -81,7 +81,8 @@
{{- if findRE `^https://brid.gy/[^/]*/mastodon` $webmention.source -}} {{- if findRE `^https://brid.gy/[^/]*/mastodon` $webmention.source -}}
<p role="doc-tip" itemprop="accessibilitySummary">This comment may have major formatting errors that could impact screen reader comprehension.</p> <p role="doc-tip" itemprop="accessibilitySummary">This comment may have major formatting errors that could impact screen reader comprehension.</p>
{{- end -}} {{- end -}}
<p><q itemprop="text" class="p-content">{{ $webmention.content | replaceRE `^@Seirdy(@pleroma.envs.net)? ?` ""}}</q></p> <p><q itemprop="text" class="p-content">{{ $webmention.content | replaceRE `^@Seirdy(@pleroma.envs.net)? ?` "" | replaceRE ` \n` `
`}}</q></p>
{{- end -}} {{- end -}}
{{- end }} {{- end }}
</dd> </dd>

View file

@ -89,11 +89,10 @@ netizens() {
printf 'Netizens,' printf 'Netizens,'
{ {
curl -sSL --compressed https://netizensring.link/onionring-variables.js \ curl -sSL --compressed https://netizensring.link/onionring-variables.js \
| grep -C 1 https://seirdy.one/ | sd -s '];' "'https://netizensring.link/,'" | grep -C 1 https://seirdy.one/
echo "'null'," } | sd 'https://seirdy.one/,?' 'https://netizensring.link/' \
} | sd 'https://seirdy.one/,?' 'https://netizensring.link/,' \ | sd "\n|'|\r" '' | trim_trailing_comma
| sd "\n|'" '' | trim_trailing_comma echo ',null'
echo
} }
print_csv_values() { print_csv_values() {