accounts approved, video player testing, bookmark collections
This commit is contained in:
mgabdev
2020-12-17 01:34:00 -05:00
parent 04053c0e31
commit 5a37a7090e
88 changed files with 688 additions and 395 deletions

View File

@@ -4,7 +4,7 @@ class REST::StatusSerializer < ActiveModel::Serializer
attributes :id, :created_at, :revised_at, :in_reply_to_id, :in_reply_to_account_id,
:sensitive, :spoiler_text, :visibility, :language,
:url, :replies_count, :reblogs_count, :pinnable, :pinnable_by_group,
:favourites_count, :quote_of_id, :expires_at, :has_quote
:favourites_count, :quote_of_id, :expires_at, :has_quote, :bookmark_collection_id
attribute :favourited, if: :current_user?
attribute :reblogged, if: :current_user?
@@ -168,6 +168,10 @@ class REST::StatusSerializer < ActiveModel::Serializer
object.active_mentions.to_a.sort_by(&:id)
end
def bookmark_collection_id
instance_options[:bookmark_collection_id]
end
class ApplicationSerializer < ActiveModel::Serializer
attributes :name, :website
end