mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 12:52:10 +00:00
Use pleroma.envs.net links when possible
Should reduce dependency on brid.gy a little; once a mention is received, it no longer needs brid.gy to be up and running.
This commit is contained in:
parent
8709bf9ec2
commit
5f1cf3b2b2
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
https://www.tinybrain.fans/accessibility.html,https://tinybrain.fans/accessibility.html
|
||||
https://brid.gy/post/twitter/seirdy/1536747178877673475,https://archive.today/Mzo9v
|
||||
https://brid.gy/comment/mastodon/@Seirdy@pleroma.envs.net/ANUjukccjwEmivz3ia/ANUmmjSDUviUeCz42S,https://archive.today/hxOsO
|
||||
https://wonderfall.dev/fdroid-issues/,https://privsec.dev/posts/android/f-droid-security-issues/
|
||||
|
|
|
|
@ -80,7 +80,12 @@
|
|||
{{ end -}}
|
||||
<a class="u-url" itemprop="url" href="{{ $src }}" rel="nofollow ugc">liked</a> this
|
||||
{{ else -}}
|
||||
{{- if findRE `^https://brid.gy/[^/]*/mastodon` $webmention.source -}}
|
||||
{{- $canonicalSrc := replaceRE "https://brid.gy/.*pleroma.envs.net/([^/]*)(.*)?" `https://pleroma.envs.net/notice/$1` $src -}}
|
||||
<a class="u-url" itemprop="url" href="{{ $canonicalSrc }}" rel="nofollow ugc">
|
||||
{{- else -}}
|
||||
<a class="u-url" itemprop="url" href="{{ $src }}" rel="nofollow ugc">
|
||||
{{- end -}}
|
||||
<span itemprop="name" class="p-name">
|
||||
{{ if $webmention.title -}}
|
||||
{{ $title | truncate 200 | replaceRE ` \n` `
|
||||
|
|
Loading…
Reference in a new issue