Fix post deletion on Pleroma

See: https://git.pleroma.social/pleroma/pleroma/issues/1481

Fixes #223
This commit is contained in:
Matt Baer 2020-02-08 15:19:06 -05:00
parent f8a40fac4b
commit fe82cbb96e
1 changed files with 6 additions and 1 deletions

View File

@ -600,7 +600,12 @@ func deleteFederatedPost(app *App, p *PublicPost, collID int64) error {
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 {
log.Error("Couldn't delete post! %v", err)
}