about summary refs log tree commit diff
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-08-03 05:41:38 -0500
committermultiple creatures <dev@multiple-creature.party>2019-08-03 05:41:38 -0500
commita96d89ac567cbb9e0631682f3b78a26bcf5a9ba9 (patch)
tree36602cfeb2e0e913975dc19f7ca5d1cd125d0307
parent6613005ae63bdc31a818d7488c36a130b558a903 (diff)
fix 6 am typo - `+=` -> `=`
-rw-r--r--app/helpers/blocklist_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/blocklist_helper.rb b/app/helpers/blocklist_helper.rb
index 5730a2ef5..f916579ec 100644
--- a/app/helpers/blocklist_helper.rb
+++ b/app/helpers/blocklist_helper.rb
@@ -21,7 +21,7 @@ module BlocklistHelper
     admin_id = Account.find_remote('guinan', 'tenforward.social')&.id
     return [] if admin_id.nil?
 
-    domains += ActiveRecord::Base.connection.select_values("SELECT unnest(regexp_matches(text, '\\m[\\w\\-]+\\.[\\w\-]+(?:\\.[\\w\\-]+)*', 'g')) FROM statuses WHERE account_id = #{admin_id.to_i} AND NOT reply AND created_at >= (NOW() - INTERVAL '2 days') AND tsv @@ to_tsquery('ten <-> forward <-> moderation <-> announcement') EXCEPT SELECT domain FROM domain_blocks")
+    domains = ActiveRecord::Base.connection.select_values("SELECT unnest(regexp_matches(text, '\\m[\\w\\-]+\\.[\\w\-]+(?:\\.[\\w\\-]+)*', 'g')) FROM statuses WHERE account_id = #{admin_id.to_i} AND NOT reply AND created_at >= (NOW() - INTERVAL '2 days') AND tsv @@ to_tsquery('ten <-> forward <-> moderation <-> announcement') EXCEPT SELECT domain FROM domain_blocks")
 
     domains.map! do |domain|
       {domain: domain, severity: :suspend, reason: '(imported from ten.forward)'}