Skip to content

Commit

Permalink
add fedilink. fixes #57
Browse files Browse the repository at this point in the history
  • Loading branch information
rystaf committed Jul 28, 2023
1 parent c935ffa commit 624b7e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions templates/comment.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
{{ end }}
<ul class="buttons">
<li><a href="/{{.State.Host}}/comment/{{.P.Comment.ID}}">permalink</a></li>
<li><a href="{{.P.Comment.ApID}}">fedilink</a></li>
{{ if ne .Op "source"}}
<li><a class="source" for="c{{.P.Comment.ID}}" href="/{{.State.Host}}/comment/{{.P.Comment.ID}}?source">source</a></li>
{{ else }}
Expand Down
1 change: 1 addition & 0 deletions templates/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
<div class="buttons">
{{ if .Post.NSFW }}<span class="nsfw">NSFW</span>{{end}}
<a href="/{{ .State.Host }}/post/{{ .Post.ID }}">{{ .Counts.Comments }} comments</a>
<a href="{{ .Post.ApID}}">fedilink</a>
{{ if and .State.Session (eq .State.Session.UserID .Post.CreatorID) }}
{{ if not .Post.Deleted }}<a href="/{{ .State.Host }}/post/{{ .Post.ID }}?edit">edit</a>{{end}}
<form class="link-btn" method="POST">
Expand Down

0 comments on commit 624b7e4

Please sign in to comment.