()
| 1211 | } |
| 1212 | |
| 1213 | func (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 | |
| 1222 | func (p *PublicPost) ActivityObject(app *App) *activitystreams.Object { |
| 1223 | cfg := app.cfg |
no test coverage detected