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")
|
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.
|
// Get the page of recent forum comment IDs of all time.
|
||||||
type scanner struct {
|
type scanner struct {
|
||||||
CommentID uint64
|
CommentID uint64
|
||||||
|
|
|
@ -341,6 +341,7 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
<!-- Inner circle invitation -->
|
<!-- Inner circle invitation -->
|
||||||
|
{{if not .IsSiteGallery}}
|
||||||
{{if and (.CurrentUser.IsInnerCircle) (not .User.InnerCircle) (ne .CurrentUser.Username .User.Username)}}
|
{{if and (.CurrentUser.IsInnerCircle) (not .User.InnerCircle) (ne .CurrentUser.Username .User.Username)}}
|
||||||
<div class="block mt-0">
|
<div class="block mt-0">
|
||||||
<span class="icon"><img src="/static/img/circle-16.png"></span>
|
<span class="icon"><img src="/static/img/circle-16.png"></span>
|
||||||
|
@ -358,6 +359,7 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
{{end}}
|
||||||
|
|
||||||
{{template "pager" .}}
|
{{template "pager" .}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user