diff options
author | Caidan Williams <caidan@internet.dev> | 2025-08-25 17:17:49 -0700 |
---|---|---|
committer | Caidan Williams <caidan@internet.dev> | 2025-08-25 17:18:15 -0700 |
commit | eb45154823323b0c7ecbd49b5896118b106cd762 (patch) | |
tree | 3c204c101db2db36d3c6eaea8c0094268e8941cb /bskyweb/templates/post.html | |
parent | 685650b2964ffa5e86c122a410e4b9713c01dcf7 (diff) | |
download | voidsky-eb45154823323b0c7ecbd49b5896118b106cd762.tar.zst |
refactor: rename canonical filter to canonicalize_url for better clarity
- Rename filter from 'canonical' to 'canonicalize_url' to follow Pongo2 naming conventions - Update function name from filterCanonical to filterCanonicalizeURL - Update template usage in post.html and profile.html - Update test function name and all references
Diffstat (limited to 'bskyweb/templates/post.html')
-rw-r--r-- | bskyweb/templates/post.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bskyweb/templates/post.html b/bskyweb/templates/post.html index a290b94e7..1f3f6da4e 100644 --- a/bskyweb/templates/post.html +++ b/bskyweb/templates/post.html @@ -14,7 +14,7 @@ <meta property="profile:username" content="{{ profileView.Handle }}"> {%- if requestURI %} <meta property="og:url" content="{{ requestURI }}"> - <link rel="canonical" href="{{ requestURI|canonical }}" /> + <link rel="canonical" href="{{ requestURI|canonicalize_url }}" /> {% endif -%} {%- if postView.Author.DisplayName %} <meta property="og:title" content="{{ postView.Author.DisplayName }} (@{{ postView.Author.Handle }})"> |