add reveal secrets in mod stream
This commit is contained in:
@@ -81,6 +81,9 @@ type PostModel interface {
|
||||
// returns true if this post was truncated
|
||||
IsTruncated() bool
|
||||
|
||||
// return true if this post is a mod message
|
||||
IsCtl() bool
|
||||
|
||||
IsI2P() bool
|
||||
IsTor() bool
|
||||
IsClearnet() bool
|
||||
@@ -244,7 +247,6 @@ func (self boardPageRows) Swap(i, j int) {
|
||||
self[i], self[j] = self[j], self[i]
|
||||
}
|
||||
|
||||
|
||||
type postsGraphRow struct {
|
||||
day time.Time
|
||||
Num int64
|
||||
|
@@ -297,6 +297,10 @@ type post struct {
|
||||
FrontendPublicKey string
|
||||
}
|
||||
|
||||
func (p *post) IsCtl() bool {
|
||||
return p.board == "ctl"
|
||||
}
|
||||
|
||||
func (self *post) NNTPID() int {
|
||||
return self.nntp_id
|
||||
}
|
||||
|
Reference in New Issue
Block a user