After your change the test is:
```ruby
opened_by_user = note.comments.any? { |comment| comment.author == @user &&
comment.event == "opened" }
```
which will be true if the user has ever opened it, either the original open or
a reopen?
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5269#issuecomment-2422575702
You are receiving this because you are subscribed to this thread.
Message ID:
<openstreetmap/openstreetmap-website/pull/5269/c2422575...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev