Merge branch 'master' into glitch-soc/tentative-merge
Conflicts: README.md app/controllers/statuses_controller.rb app/lib/feed_manager.rb config/navigation.rb spec/lib/feed_manager_spec.rb Conflicts were resolved by taking both versions for each change. This means the two filter systems (glitch-soc's keyword mutes and tootsuite's custom filters) are in place, which will be changed in a follow-up commit.
This commit is contained in:
@@ -50,6 +50,8 @@ class PostStatusService < BaseService
|
||||
redis.setex("idempotency:status:#{account.id}:#{options[:idempotency]}", 3_600, status.id)
|
||||
end
|
||||
|
||||
bump_potential_friendship(account, status)
|
||||
|
||||
status
|
||||
end
|
||||
|
||||
@@ -82,4 +84,9 @@ class PostStatusService < BaseService
|
||||
def redis
|
||||
Redis.current
|
||||
end
|
||||
|
||||
def bump_potential_friendship(account, status)
|
||||
return if !status.reply? || account.following?(status.in_reply_to_account_id)
|
||||
PotentialFriendshipTracker.record(account.id, status.in_reply_to_account_id, :reply)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user