Fix post deletion on Pleroma
See: https://git.pleroma.social/pleroma/pleroma/issues/1481 Fixes #223
This commit is contained in:
parent
f8a40fac4b
commit
fe82cbb96e
|
@ -600,7 +600,12 @@ func deleteFederatedPost(app *App, p *PublicPost, collID int64) error {
|
||||||
na.CC = append(na.CC, f)
|
na.CC = append(na.CC, f)
|
||||||
}
|
}
|
||||||
|
|
||||||
err = makeActivityPost(app.cfg.App.Host, actor, si, activitystreams.NewDeleteActivity(na))
|
da := activitystreams.NewDeleteActivity(na)
|
||||||
|
// Make the ID unique to ensure it works in Pleroma
|
||||||
|
// See: https://git.pleroma.social/pleroma/pleroma/issues/1481
|
||||||
|
da.ID += "#Delete"
|
||||||
|
|
||||||
|
err = makeActivityPost(app.cfg.App.Host, actor, si, da)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error("Couldn't delete post! %v", err)
|
log.Error("Couldn't delete post! %v", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue