Skip to content

Commit

Permalink
Merge pull request #260 from writeas/fix-deletion-pleroma
Browse files Browse the repository at this point in the history
Fix post deletion on Pleroma
  • Loading branch information
thebaer committed Feb 19, 2020
2 parents 8e2eab5 + fe82cbb commit 8e8eb3c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion activitypub.go
Expand Up @@ -607,7 +607,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)
}
Expand Down

0 comments on commit 8e8eb3c

Please sign in to comment.