Hide post signature on pinned posts

Ref T814
This commit is contained in:
Matt Baer 2021-02-23 17:36:35 -05:00
parent 53ea85dc86
commit a10827cd50
1 changed files with 4 additions and 0 deletions

View File

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