Rob Carlson on Nostr: Okay Mastoton and Rails wizards, I need some advice. I was able to find and purge ...
Okay Mastoton and Rails wizards, I need some advice. I was able to find and purge idle accounts I was following using this:
Account.find_by(username: "vees", domain: nil).following.left_joins(:statuses)
.reorder(nil).group('accounts.id', 'accounts.username').having('COUNT(statuses.id) = 0').pluck('accounts.username','accounts.domain')
But now I want to find accounts that I interact with a LOT and add them to a core list of folks I want to see every post for. How could I write a quick Rails block to find folks I've boosted, favorited, and replied to regularly?
#Mastodon #Rails #MastoAdmin
Account.find_by(username: "vees", domain: nil).following.left_joins(:statuses)
.reorder(nil).group('accounts.id', 'accounts.username').having('COUNT(statuses.id) = 0').pluck('accounts.username','accounts.domain')
But now I want to find accounts that I interact with a LOT and add them to a core list of folks I want to see every post for. How could I write a quick Rails block to find folks I've boosted, favorited, and replied to regularly?
#Mastodon #Rails #MastoAdmin