Hide post signature on pinned posts

Ref T814
pull/437/head
Matt Baer 4 years ago
parent 53ea85dc86
commit a10827cd50
  1. 4
      postrender.go

@ -60,6 +60,10 @@ func (p *PublicPost) formatContent(cfg *config.Config, isOwner bool) {
} }
func (p *Post) augmentContent(c *Collection) { func (p *Post) augmentContent(c *Collection) {
if p.PinnedPosition.Valid {
// Don't augment posts that are pinned
return
}
// Add post signatures // Add post signatures
if c.Signature != "" { if c.Signature != "" {
p.Content += "\n\n" + c.Signature p.Content += "\n\n" + c.Signature

Loading…
Cancel
Save