From fe82cbb96e3d5c57cfde0db76c28c4ea6dabfe50 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Sat, 8 Feb 2020 15:19:06 -0500 Subject: [PATCH] Fix post deletion on Pleroma See: https://git.pleroma.social/pleroma/pleroma/issues/1481 Fixes #223 --- activitypub.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/activitypub.go b/activitypub.go index a5b140d..d21959b 100644 --- a/activitypub.go +++ b/activitypub.go @@ -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) }