Fixed issue in notifications to show notifications GT not LT 7 days ago
• Fixed: - issue in notifications to show notifications GT not LT 7 days ago
This commit is contained in:
parent
e432c2effb
commit
5e82d71a9f
|
@ -42,7 +42,7 @@ class Notification < ApplicationRecord
|
|||
validates :account_id, uniqueness: { scope: [:activity_type, :activity_id] }
|
||||
validates :activity_type, inclusion: { in: TYPE_CLASS_MAP.values }
|
||||
|
||||
scope :latest, -> { where('created_at < ?', 7.days.ago) }
|
||||
scope :latest, -> { where('created_at > ?', 7.days.ago) }
|
||||
scope :browserable, ->(exclude_types = [], account_id = nil, only_verified = false, only_following = false) {
|
||||
types = TYPE_CLASS_MAP.values - activity_types_from_types(exclude_types + [:follow_request])
|
||||
|
||||
|
|
Loading…
Reference in New Issue