Skip to content

Commit

Permalink
fix non local community search
Browse files Browse the repository at this point in the history
  • Loading branch information
rystaf committed Jul 13, 2023
1 parent ddf2501 commit 2b0eefa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/activities.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion templates/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down
2 changes: 1 addition & 1 deletion templates/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 2b0eefa

Please sign in to comment.