mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: new layout for groups page, allow changes to automatic group bio (#7350)
This commit is contained in:
@@ -19,6 +19,7 @@ class BasicGroupSerializer < ApplicationSerializer
|
||||
:flair_color,
|
||||
:bio_raw,
|
||||
:bio_cooked,
|
||||
:bio_excerpt,
|
||||
:public_admission,
|
||||
:public_exit,
|
||||
:allow_membership_requests,
|
||||
@@ -38,6 +39,10 @@ class BasicGroupSerializer < ApplicationSerializer
|
||||
end
|
||||
end
|
||||
|
||||
def bio_excerpt
|
||||
PrettyText.excerpt(object.bio_cooked, 110) if object.bio_cooked.present?
|
||||
end
|
||||
|
||||
def include_incoming_email?
|
||||
staff?
|
||||
end
|
||||
|
Reference in New Issue
Block a user