MCPcopy Create free account
hub / github.com/writefreely/writefreely / CanonicalURL

Method CanonicalURL

posts.go:1206–1211  ·  view source on GitHub ↗
(hostName string)

Source from the content-addressed store, hash-verified

1204}
1205
1206func (p *PublicPost) CanonicalURL(hostName string) string {
1207 if p.Collection == nil || p.Collection.Alias == "" {
1208 return hostName + "/" + p.ID + ".md"
1209 }
1210 return p.Collection.CanonicalURL() + p.Slug.String
1211}
1212
1213func (pp *PublicPost) DisplayCanonicalURL() string {
1214 us := pp.CanonicalURL(pp.Collection.hostName)

Callers 14

newPostFunction · 0.95
DisplayCanonicalURLMethod · 0.95
ActivityObjectMethod · 0.95
PreviewObjectMethod · 0.45
exportPostsCSVFunction · 0.45
ViewFeedFunction · 0.45
handlePremiumContentMethod · 0.45
formatContentMethod · 0.45
emailPostFunction · 0.45
sendSubConfirmEmailFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected