Sfoglia il codice sorgente

Merge pull request #260 from writeas/fix-deletion-pleroma

Fix post deletion on Pleroma
database-dump
Matt Baer 4 anni fa
committed by GitHub
parent
commit
8e8eb3c563
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: 4AEE18F83AFDEB23
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. +6
    -1
      activitypub.go

+ 6
- 1
activitypub.go Vedi File

@@ -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)
}


Caricamento…
Annulla
Salva