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

Method DisplayCanonicalURL

posts.go:1213–1220  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1211}
1212
1213func (pp *PublicPost) DisplayCanonicalURL() string {
1214 us := pp.CanonicalURL(pp.Collection.hostName)
1215 u, err := url.Parse(us)
1216 if err != nil {
1217 return us
1218 }
1219 return u.Hostname() + u.Path
1220}
1221
1222func (p *PublicPost) ActivityObject(app *App) *activitystreams.Object {
1223 cfg := app.cfg

Callers 1

emailPostFunction · 0.45

Calls 1

CanonicalURLMethod · 0.95

Tested by

no test coverage detected