Updated GroupInfoPanel to be markdown enabled, linkable
• Updated: - GroupInfoPanel to be markdown enabled, linkable for users, hashtags, urls
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
class REST::GroupSerializer < ActiveModel::Serializer
|
||||
include RoutingHelper
|
||||
|
||||
attributes :id, :title, :description, :cover_image_url, :is_archived,
|
||||
attributes :id, :title, :description, :description_html, :cover_image_url, :is_archived,
|
||||
:member_count, :created_at, :is_private, :is_visible, :slug, :tags, :category
|
||||
|
||||
def id
|
||||
@@ -14,6 +14,14 @@ class REST::GroupSerializer < ActiveModel::Serializer
|
||||
object.group_categories_id
|
||||
end
|
||||
|
||||
def description
|
||||
object.description
|
||||
end
|
||||
|
||||
def description_html
|
||||
Formatter.instance.formatGroupDescription(object.description).strip
|
||||
end
|
||||
|
||||
def clean_migrated_url
|
||||
object
|
||||
.cover_image_file_name
|
||||
|
||||
Reference in New Issue
Block a user