Use url fragment for post link on thread page

This commit is contained in:
r 2020-01-11 07:19:48 +00:00
parent fb20bdc65e
commit f5963f2da5
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@
</a>
</div>
<div class="status-action">
<a class="status-time" href="/thread/{{.ID}}#status-{{.ID}}" {{if .ThreadInNewTab}}target="_blank"{{end}}>
<a class="status-time" href="{{if not .ShowReplies}}/thread/{{.ID}}{{end}}#status-{{.ID}}" {{if .ThreadInNewTab}}target="_blank"{{end}}>
<time datetime="{{FormatTimeRFC3339 .CreatedAt}}" title="{{FormatTimeRFC822 .CreatedAt}}"> {{TimeSince .CreatedAt}} </time>
</a>
</div>