Updated GroupInfoPanel to be markdown enabled, linkable

• Updated:
- GroupInfoPanel to be markdown enabled, linkable for users, hashtags, urls
This commit is contained in:
mgabdev
2020-09-01 18:14:11 -05:00
parent d7cd258977
commit a5ae957ac5
3 changed files with 25 additions and 3 deletions

View File

@@ -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