Inner circle bugfixes

face-detect
Noah Petherbridge 2023-05-23 20:15:26 -07:00
parent 9788ea6a33
commit 3b3616f0c9
2 changed files with 22 additions and 15 deletions

View File

@ -38,6 +38,11 @@ func PaginateRecentPosts(user *User, categories []string, pager *Pagination) ([]
wheres = append(wheres, "forums.explicit = false")
}
// Circle membership.
if !user.IsInnerCircle() {
wheres = append(wheres, "forums.inner_circle is not true")
}
// Get the page of recent forum comment IDs of all time.
type scanner struct {
CommentID uint64

View File

@ -341,6 +341,7 @@
{{end}}
<!-- Inner circle invitation -->
{{if not .IsSiteGallery}}
{{if and (.CurrentUser.IsInnerCircle) (not .User.InnerCircle) (ne .CurrentUser.Username .User.Username)}}
<div class="block mt-0">
<span class="icon"><img src="/static/img/circle-16.png"></span>
@ -358,6 +359,7 @@
{{end}}
</div>
{{end}}
{{end}}
{{template "pager" .}}