2
0
This commit is contained in:
2025-06-30 17:17:00 +00:00
parent ffed2ff158
commit 8448a4309d

View File

@@ -5,9 +5,12 @@
# url: https://git.stonecarterstudios.com/StoneCarterStudios/custom-digest-posts
after_initialize do
module CustomUserNotifications
require_dependency 'user_notifications'
UserNotifications.class_eval do
def digest(user, opts = {})
super(user, opts).tap do
super(user, opts)
@popular_posts =
if SiteSetting.digest_posts > 0
Post
@@ -21,11 +24,8 @@ after_initialize do
else
[]
end
end
end
end
class ::UserNotifications
prepend CustomUserNotifications
self
end
end
end