mirror of
https://github.com/writefreely/writefreely
synced 2024-11-10 11:24:13 +00:00
Merge pull request #260 from writeas/fix-deletion-pleroma
Fix post deletion on Pleroma
This commit is contained in:
commit
8e8eb3c563
1 changed files with 6 additions and 1 deletions
|
@ -607,7 +607,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 a new issue