Add backend support for local_only on status create

Based off ThibG implementation on glitch #502
This commit is contained in:
Renato "Lond" Cerqueira
2018-08-25 13:27:58 +02:00
parent 4969ea4f2c
commit f37ca30ea1
4 changed files with 21 additions and 4 deletions

View File

@ -4,7 +4,7 @@ class REST::StatusSerializer < ActiveModel::Serializer
attributes :id, :created_at, :in_reply_to_id, :in_reply_to_account_id,
:sensitive, :spoiler_text, :visibility, :language,
:uri, :content, :url, :replies_count, :reblogs_count,
:favourites_count
:favourites_count, :local_only
attribute :favourited, if: :current_user?
attribute :reblogged, if: :current_user?