We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 273edde commit 1d11228Copy full SHA for 1d11228
lib/tasks/spam.rake
@@ -19,6 +19,8 @@ namespace :spam do
19
20
def find_spam(items)
21
items = items.select do |item|
22
+ return false if item.user.curator || item.user.admin
23
+
24
summary = item.summary
25
uris = extract_uris(summary)
26
uris.length.positive?
@@ -39,5 +41,8 @@ namespace :spam do
39
41
40
42
topic_comments = find_spam(TopicComment.all)
43
topic_comments.delete_all if topic_comments.length.positive?
44
45
+ service_comments = find_spam(ServiceComment.all)
46
+ service_comments.delete_all if service_comments.length.positive?
47
end
48
0 commit comments