Drop EOL Ruby 2.7 (#24237)

This commit is contained in:
Nick Schonning
2023-04-26 19:46:18 -04:00
committed by GitHub
parent d8a06c1375
commit 49fad26eca
12 changed files with 12 additions and 27 deletions

View File

@@ -410,7 +410,7 @@ class Account < ApplicationRecord
end
class << self
DISALLOWED_TSQUERY_CHARACTERS = /['?\\:]/.freeze
DISALLOWED_TSQUERY_CHARACTERS = /['?\\:]/
TEXTSEARCH = "(setweight(to_tsvector('simple', accounts.display_name), 'A') || setweight(to_tsvector('simple', accounts.username), 'B') || setweight(to_tsvector('simple', coalesce(accounts.domain, '')), 'C'))"
REPUTATION_SCORE_FUNCTION = '(greatest(0, coalesce(s.followers_count, 0)) / (greatest(0, coalesce(s.following_count, 0)) + 1.0))'