added 260907 version of worker toolkit

This commit is contained in:
2026-09-08 20:30:51 -04:00
parent cbd3f0f8ca
commit 97aca37663
1283 changed files with 142951 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
class AdditionalPosts
protected
def current_ability
@current_ability ||= Ability.new(user)
end
def add_last_new_posts(number, followed_ids)
Post.where(_type: "Post")
.not_in(_id: followed_ids)
.order(created_at: :desc)
.to_a
.first(number)
end
end