Inner circle bugfixes
This commit is contained in:
parent
9788ea6a33
commit
3b3616f0c9
|
@ -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
|
||||
|
|
|
@ -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" .}}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user