Hide post signature on pinned posts
Ref T814
This commit is contained in:
parent
53ea85dc86
commit
a10827cd50
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue