MCPcopy Index your code
hub / github.com/writefreely/writefreely / PlainDisplayTitle

Method PlainDisplayTitle

posts.go:224–229  ·  view source on GitHub ↗

PlainDisplayTitle dynamically generates a title from the Post's contents if it doesn't already have an explicit title.

()

Source from the content-addressed store, hash-verified

222// PlainDisplayTitle dynamically generates a title from the Post's contents if it
223// doesn't already have an explicit title.
224func (p *Post) PlainDisplayTitle() string {
225 if t := stripmd.Strip(p.DisplayTitle()); t != "" {
226 return t
227 }
228 return p.ID
229}
230
231// FormattedDisplayTitle dynamically generates a title from the Post's contents if it
232// doesn't already have an explicit title.

Callers 2

ViewFeedFunction · 0.80
viewLocalTimelineFeedFunction · 0.80

Calls 1

DisplayTitleMethod · 0.95

Tested by

no test coverage detected