diff --git a/app/serializers/rest/group_serializer.rb b/app/serializers/rest/group_serializer.rb index 113f1dc8..a0554874 100644 --- a/app/serializers/rest/group_serializer.rb +++ b/app/serializers/rest/group_serializer.rb @@ -3,12 +3,17 @@ class REST::GroupSerializer < ActiveModel::Serializer include RoutingHelper - attributes :id, :title, :description, :cover_image_url, :is_archived, :member_count, :created_at + attributes :id, :title, :description, :cover_image_url, :is_archived, + :member_count, :created_at, :is_private, :is_visible, :slug, :tags, :category def id object.id.to_s end + def category + object.group_categories_id + end + def clean_migrated_url object .cover_image_file_name