diff --git a/outbox/undo.go b/outbox/undo.go index b38370c1..a3719979 100644 --- a/outbox/undo.go +++ b/outbox/undo.go @@ -33,12 +33,15 @@ func Undo(ctx context.Context, domain string, db *sql.DB, activity *ap.Activity) return errors.New("cannot undo activity") } + to := activity.To + to.Add(ap.Public) + undo := ap.Activity{ Context: "https://www.w3.org/ns/activitystreams", ID: fmt.Sprintf("https://%s/undo/%x", domain, sha256.Sum256([]byte(fmt.Sprintf("%s|%d", activity.ID, time.Now().UnixNano())))), Type: ap.Undo, Actor: activity.Actor, - To: activity.To, + To: to, CC: activity.CC, Object: activity, }