post_alerter.rbで
589-599行目を以下のように変更します。
# linked, quoted, mentioned, chat_quoted は、すでに返信通知がある場合は抑制される可能性があります
if [
Notification.types[:quoted],
Notification.types[:linked],
Notification.types[:mentioned],
Notification.types[:chat_quoted],
].include?(type)
if existing_notifications.find { |n| n.notification_type == Notification.types[:replied] }
return
end
end
以下のように:
# linked, quoted, mentioned, chat_quoted は、この投稿に関する既存の通知がある場合は抑制される可能性があります
if [
Notification.types[:quoted],
Notification.types[:linked],
Notification.types[:mentioned],
Notification.types[:chat_quoted],
].include?(type)
return if existing_notifications.any?
end
これで機能しますが、他の通知(例えば、抑制したい可能性のあるプラグイン通知など)がここをすり抜ける可能性があるため、少し懸念があります。
@lindsey ここで通知を抑制すべきなのはいつか、製品に関する質問があります。
この小さな修正は一歩前進でしょうか?