2
0

Update formatting.

This commit is contained in:
2025-06-30 16:46:05 +00:00
parent 498e1f2c3b
commit dabfb3f181

View File

@@ -14,9 +14,7 @@ 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 > ?", 1) .where("posts.post_number > ?", 1)
.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)