fix non local community search

This commit is contained in:
Ryan Stafford 2023-07-13 16:05:16 -04:00
parent ddf25011cc
commit 2b0eefa172
3 changed files with 3 additions and 3 deletions

View file

@ -13,7 +13,7 @@
<a href="">{{$state.User.PersonView.Person.Name }}</a>
{{ end }}
in
<a href="/{{$state.Host}}/c/{{ fullcname $activity.Comment.P.Community }}">/c/{{ $activity.Comment.P.Community.Name }}</a>
<a href="/{{$state.Host}}/c/{{ fullcname $activity.Comment.P.Community }}">c/{{ $activity.Comment.P.Community.Name }}</a>
</span>
</div>
{{ template "comment.html" $activity.Comment }}

View file

@ -43,7 +43,7 @@
by
<a href="/{{ .State.Host }}/u/{{ fullname .Creator }}">{{ fullname .Creator }}</a>
to
<a href="/{{ .State.Host }}/c/{{ fullcname .Community }}">{{ fullcname .Community}}</a>
<a href="/{{ .State.Host }}/c/{{ fullcname .Community }}">c/{{ fullcname .Community}}</a>
</div>
<div class="buttons">
{{ if .Post.NSFW }}<span class="nsfw">NSFW</span>{{end}}

View file

@ -7,7 +7,7 @@
{{ if .User }}
<input type="hidden" name="username" value="{{.UserName}}">
{{ else if .Community }}
<input type="hidden" name="communityname" value="{{.CommunityName}}">
<input type="hidden" name="communityname" value="{{fullcname .Community.CommunityView.Community}}">
{{ end }}
</form>
{{ end }}