[deploy] Hotfix: Disable Article Sinking (#9237)
This commit is contained in:
parent
7fb7b179d9
commit
0a51540a4c
2 changed files with 8 additions and 1 deletions
|
|
@ -1,7 +1,14 @@
|
|||
module Moderator
|
||||
class SinkArticles
|
||||
def self.call(user_id)
|
||||
# rubocop:disable Lint/UnreachableCode
|
||||
# HOTFIX
|
||||
# @mstruve: This worker is broken and needs to be fixed. It can inadvertantly
|
||||
# bump up scores for a user's articles if they have a lot of good reactions
|
||||
# this leads to clumps of articles from the same user in feeds
|
||||
return
|
||||
Moderator::SinkArticlesWorker.perform_async(user_id)
|
||||
# rubocop:enable Lint/UnreachableCode
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ RSpec.describe Moderator::SinkArticles, type: :service do
|
|||
end
|
||||
let(:vomit_reaction) { create(:reaction, reactable: spam_user, user: moderator, category: "vomit") }
|
||||
|
||||
describe "#call" do
|
||||
xdescribe "#call" do
|
||||
it "lowers all of a user's articles' scores by 25 each if not confirmed" do
|
||||
vomit_reaction
|
||||
expect do
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue