在 post_alerter.rb 中
将第 589-599 行从:
# linked, quoted, mentioned, chat_quoted may be suppressed if you already have a reply notification
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 may be suppressed if you already have any notification about this
post
if [
Notification.types[:quoted],
Notification.types[:linked],
Notification.types[:mentioned],
Notification.types[:chat_quoted],
].include?(type)
return if existing_notifications.any?
end
这样做可行,但我确实有点担心,因为可能会遗漏其他通知。(例如插件通知,我们可能希望抑制这些通知)
@lindsey 这里有一个关于产品的问题,我们应该在什么时候抑制通知?
我想这个小修复算是一个进步?