Merge branch 'kb_migration' into kb_migration_development

This commit is contained in:
KMY 2023-04-20 17:43:47 +09:00
commit 51cac0760f
99 changed files with 1077 additions and 365 deletions

View file

@ -55,7 +55,7 @@ class AccountFilter
when 'by_domain'
Account.where(domain: value.to_s.strip)
when 'username'
Account.matches_username(value.to_s.strip)
Account.matches_username(value.to_s.strip.delete_prefix('@'))
when 'display_name'
Account.matches_display_name(value.to_s.strip)
when 'email'

View file

@ -18,6 +18,7 @@
#
class PreviewCardProvider < ApplicationRecord
include Paginable
include DomainNormalizable
include Attachmentable