Archived
1
0

fix json rendering

This commit is contained in:
Jeff Becker
2017-09-30 08:32:51 -04:00
parent ef024977df
commit 796d3480ba
2 changed files with 36 additions and 9 deletions

View File

@@ -264,9 +264,10 @@ func (self *post) MarshalJSON() (b []byte, err error) {
if len(self.Key) > 0 {
self.Tripcode = makeTripcode(self.Key)
}
if len(self.PostMarkup) > 0 {
if len(self.PostMessage) > 0 {
self.PostMarkup = self.RenderPost()
}
self.PostPrefix = self.Prefix()
// for liveui
self.Type = "Post"