Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed Oct 26, 2024
1 parent 689602f commit a56e2a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions inbox/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ func processCreateActivity[T ap.RawActivity](ctx context.Context, q *Queue, log
return fmt.Errorf("cannot set %s audience: %w", post.ID, err)
}
defer tx.Rollback()

if _, err := tx.ExecContext(ctx, `update notes set object = json_set(object, '$.audience', ?) where id = ? and object->>'$.audience' is null`, post.Audience, post.ID); err != nil {
return fmt.Errorf("failed to set %s audience to %s: %w", post.ID, audience.String, err)
}
Expand Down

0 comments on commit a56e2a5

Please sign in to comment.