Remove group following limitations

This commit is contained in:
KMY 2023-03-14 22:02:43 +09:00
parent cbe29bcdee
commit bef078a87a
13 changed files with 48 additions and 26 deletions

View file

@ -50,7 +50,6 @@
# trendable :boolean
# reviewed_at :datetime
# requested_review_at :datetime
# group_message_following_only :boolean
# group_allow_private_message :boolean
#

View file

@ -4,14 +4,15 @@
#
# Table name: account_stats
#
# id :bigint(8) not null, primary key
# account_id :bigint(8) not null
# statuses_count :bigint(8) default(0), not null
# following_count :bigint(8) default(0), not null
# followers_count :bigint(8) default(0), not null
# created_at :datetime not null
# updated_at :datetime not null
# last_status_at :datetime
# id :bigint(8) not null, primary key
# account_id :bigint(8) not null
# statuses_count :bigint(8) default(0), not null
# following_count :bigint(8) default(0), not null
# followers_count :bigint(8) default(0), not null
# created_at :datetime not null
# updated_at :datetime not null
# last_status_at :datetime
# group_activitypub_count :integer
#
class AccountStat < ApplicationRecord
@ -33,4 +34,8 @@ class AccountStat < ApplicationRecord
def statuses_count
[attributes['statuses_count'], 0].max
end
def group_activitypub_count
[attributes['group_activitypub_count'], 0].max
end
end

View file

@ -16,6 +16,8 @@ module AccountCounters
:following_count=,
:followers_count,
:followers_count=,
:group_activitypub_count,
:group_activitypub_count=,
:last_status_at,
to: :account_stat