Rename with_lock to with_redis_lock to avoid confusion with ActiveRecord's method (#24741)
This commit is contained in:
@@ -18,7 +18,7 @@ class RemoveStatusService < BaseService
|
||||
@account = status.account
|
||||
@options = options
|
||||
|
||||
with_lock("distribute:#{@status.id}") do
|
||||
with_redis_lock("distribute:#{@status.id}") do
|
||||
@status.discard_with_reblogs
|
||||
|
||||
StatusPin.find_by(status: @status)&.destroy
|
||||
|
||||
Reference in New Issue
Block a user