Fix post deletion on Pleroma

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

Fixes #223
pull/260/head
Matt Baer 5 years ago
parent f8a40fac4b
commit fe82cbb96e
  1. 7
      activitypub.go

@ -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…
Cancel
Save