fix pubkey tripcode
This commit is contained in:
1 parent
2074e49d75
commit
741ded6694
3 files changed
+7
-2
No files matched your search
@@ -57,6 +57,7 @@ type PostModel interface {
|
||||
Board() string
|
||||
Sage() bool
|
||||
Pubkey() string
|
||||
PubkeyHex() string
|
||||
Reference() string
|
||||
ReferenceHash() string
|
||||
|
||||
|
||||
@@ -376,6 +376,10 @@ func (self *post) ShortHash() string {
|
||||
return ShortHashMessageID(self.MessageID())
|
||||
}
|
||||
|
||||
func (self *post) PubkeyHex() string {
|
||||
return self.Key
|
||||
}
|
||||
|
||||
func (self *post) Pubkey() string {
|
||||
if len(self.Key) > 0 {
|
||||
return fmt.Sprintf("<label title=\"%s\">%s</label>", self.Key, makeTripcode(self.Key))
|
||||
|
||||
Reference in new issue
Block a user