Skip to content

Commit 51f536e

Browse files
committed
Check if protip owner is banned before indexing.
1 parent f340e2d commit 51f536e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/jobs/index_protip.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ class IndexProtip < Struct.new(:protip_id)
55

66
def perform
77
protip = Protip.find(protip_id)
8-
protip.tire.update_index
8+
protip.tire.update_index unless protip.user.banned?
99
end
1010
end

0 commit comments

Comments
 (0)