Implements: https://todo.code.netlandish.com/~netlandish/links/124
Changelog-updated: Detail views for note/link will use the home feed for
tag linking when it's the note/link owner.
---
templates/link_detail.html | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/templates/link_detail.html b/templates/link_detail.html
index 23bdf12..cae7a7c 100644
--- a/templates/link_detail.html
+++ b/templates/link_detail.html
@@ -36,8 +36,12 @@
<p>{{.pd.Data.tags}}:</p>
<div class="link-tag">
{{range .link.Tags}}
+ {{if eq $.link.UserID $.currentUserID}}
+ <a class="link-tag__item" href="{{reverse "core:home_link_list"}}?tag={{.Slug}}">{{.Name}}</a>
+ {{else}}
<a class="link-tag__item" href="{{reverse "core:recent_link_list"}}?tag={{.Slug}}">{{.Name}}</a>
{{end}}
+ {{end}}
</div>
{{end}}
{{if eq .link.UserID .currentUserID}}
--
2.52.0