Archived
1
0

add reveal secrets in mod stream

This commit is contained in:
Jeff Becker
2019-02-10 14:11:04 -05:00
parent 59068bb961
commit 67e0f259b6
4 changed files with 34 additions and 2 deletions

View File

@@ -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

View File

@@ -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
}