Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed Oct 3, 2023
1 parent bcb7620 commit e63afcf
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions outbox/unfollow.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ func Unfollow(ctx context.Context, log *slog.Logger, db *sql.DB, follower *ap.Ac
}
defer tx.Rollback()

// mark the matching Follow as received
if _, err := tx.ExecContext(
ctx,
`UPDATE outbox SET sent = 1 WHERE activity->>'object.id' = ? and activity->>'type' = 'Follow'`,
followID,
); err != nil {
return fmt.Errorf("Failed to mark follow activity as received: %w", err)
}
// mark the matching Follow as received
if _, err := tx.ExecContext(
ctx,
`UPDATE outbox SET sent = 1 WHERE activity->>'object.id' = ? and activity->>'type' = 'Follow'`,
followID,
); err != nil {
return fmt.Errorf("Failed to mark follow activity as received: %w", err)
}

if _, err := tx.ExecContext(
ctx,
Expand Down

0 comments on commit e63afcf

Please sign in to comment.