(c *Collection)
| 95 | } |
| 96 | |
| 97 | func (p *Post) augmentContent(c *Collection) { |
| 98 | if p.PinnedPosition.Valid { |
| 99 | // Don't augment posts that are pinned |
| 100 | return |
| 101 | } |
| 102 | if strings.Index(p.Content, shortCodeNoSig) > -1 { |
| 103 | // Don't augment posts with the special "nosig" shortcode |
| 104 | return |
| 105 | } |
| 106 | // Add post signatures |
| 107 | if c.Signature != "" { |
| 108 | p.Content += "\n\n" + c.Signature |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | func (p *PublicPost) augmentContent() { |
| 113 | p.Post.augmentContent(&p.Collection.Collection) |
no outgoing calls
no test coverage detected