Progress
Report modal style fix, chat updates, statusserializer revert, display name truncation
This commit is contained in:
@@ -38,6 +38,8 @@ class ChatConversationAccount < ApplicationRecord
|
||||
belongs_to :chat_conversation
|
||||
belongs_to :last_chat_message, class_name: 'ChatMessage', optional: true
|
||||
|
||||
validate :validate_total_limit
|
||||
|
||||
def participant_accounts
|
||||
if participant_account_ids.empty?
|
||||
[account]
|
||||
@@ -47,4 +49,10 @@ class ChatConversationAccount < ApplicationRecord
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def validate_total_limit
|
||||
# errors.add(:base, I18n.t('scheduled_statuses.over_total_limit', limit: PER_ACCOUNT_APPROVED_LIMIT)) if account.scheduled_statuses.count >= PER_ACCOUNT_APPROVED_LIMIT
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -18,7 +18,6 @@ class HomeFeed < Feed
|
||||
private
|
||||
|
||||
def from_database(limit, max_id, since_id, min_id)
|
||||
puts "tilly from_database"
|
||||
Status.as_home_timeline(@account)
|
||||
.paginate_by_id(limit, max_id: max_id, since_id: since_id, min_id: min_id)
|
||||
.reject { |status| FeedManager.instance.filter?(:home, status, @account.id) }
|
||||
|
||||
Reference in New Issue
Block a user