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> <a href="">{{$state.User.PersonView.Person.Name }}</a>
{{ end }} {{ end }}
in 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> </span>
</div> </div>
{{ template "comment.html" $activity.Comment }} {{ template "comment.html" $activity.Comment }}

View file

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

View file

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