Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/models/conversation.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/app/models/conversation.rb b/app/models/conversation.rb
index 5197ebd71..bb7cc1f3b 100644
--- a/app/models/conversation.rb
+++ b/app/models/conversation.rb
@@ -9,13 +9,8 @@ class Conversation < ApplicationRecord
has_many :participants, class_name: "Person", through: :conversation_visibilities, source: :person
has_many :messages, -> { order("created_at ASC") }, inverse_of: :conversation
- validate :max_participants
validate :local_recipients
- def max_participants
- errors.add(:max_participants, "too many participants") if participants.count > 20
- end
-
def local_recipients
recipients.each do |recipient|
if recipient.local?