2
0

Re-added correct functionality override.

This commit is contained in:
2025-06-30 22:35:47 +02:00
parent 88116b22d3
commit fbb6afb510

View File

@@ -48,14 +48,8 @@ after_initialize do
.order("posts.score DESC") .order("posts.score DESC")
.for_mailing_list(user, @since) .for_mailing_list(user, @since)
.where("posts.post_type = ?", Post.types[:regular]) .where("posts.post_type = ?", Post.types[:regular])
.where( .where("posts.deleted_at IS NULL AND posts.hidden = false AND posts.user_deleted = false")
"posts.deleted_at IS NULL AND posts.hidden = false AND posts.user_deleted = false", .where("posts.post_number > ? AND posts.score > ?", 1)
)
.where(
"posts.post_number > ? AND posts.score > ?",
1,
ScoreCalculator.default_score_weights[:like_score] * 5.0,
)
.where("posts.created_at < ?", (SiteSetting.editing_grace_period || 0).seconds.ago) .where("posts.created_at < ?", (SiteSetting.editing_grace_period || 0).seconds.ago)
.limit(SiteSetting.digest_posts) .limit(SiteSetting.digest_posts)
else else