Merge branch 'master' into glitch-soc/merge-upstream
This commit is contained in:
@@ -445,7 +445,7 @@ class Account < ApplicationRecord
|
||||
end
|
||||
|
||||
def inboxes
|
||||
urls = reorder(nil).where(protocol: :activitypub).pluck(Arel.sql("distinct coalesce(nullif(accounts.shared_inbox_url, ''), accounts.inbox_url)"))
|
||||
urls = reorder(nil).where(protocol: :activitypub).group(:preferred_inbox_url).pluck(Arel.sql("coalesce(nullif(accounts.shared_inbox_url, ''), accounts.inbox_url) AS preferred_inbox_url"))
|
||||
DeliveryFailureTracker.without_unavailable(urls)
|
||||
end
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ class Form::AccountBatch
|
||||
end
|
||||
|
||||
def account_domains
|
||||
accounts.pluck(Arel.sql('distinct domain')).compact
|
||||
accounts.group(:domain).pluck(:domain).compact
|
||||
end
|
||||
|
||||
def accounts
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
# title :string default(""), not null
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
# replies_policy :integer default("list_replies"), not null
|
||||
# replies_policy :integer default("list"), not null
|
||||
#
|
||||
|
||||
class List < ApplicationRecord
|
||||
@@ -16,7 +16,7 @@ class List < ApplicationRecord
|
||||
|
||||
PER_ACCOUNT_LIMIT = 50
|
||||
|
||||
enum replies_policy: [:list_replies, :all_replies, :no_replies], _prefix: :show
|
||||
enum replies_policy: [:list, :followed, :none], _prefix: :show
|
||||
|
||||
belongs_to :account, optional: true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user