Project

General

Profile

Patch #44735 ยป 0001-Use-Array-intersect-to-check-whether-a-principal-wat.patch

Go MAEDA, 2026-11-10 07:54

View differences:

lib/plugins/acts_as_watchable/lib/acts_as_watchable.rb
user_ids |= principal.group_ids if principal.is_a?(User)
user_ids.compact!
(self.watcher_user_ids & user_ids).any?
watcher_user_ids.intersect?(user_ids)
end
def notified_watchers
    (1-1/1)