]> cat aescling's git repositories - mastodon.git/commitdiff
Merge branch 'master' into glitch-soc/merge-upstream
authorThibaut Girka <thib@sitedethib.com>
Sat, 11 May 2019 16:23:46 +0000 (18:23 +0200)
committerThibaut Girka <thib@sitedethib.com>
Sat, 11 May 2019 16:23:46 +0000 (18:23 +0200)
1  2 
app/javascript/styles/mastodon/components.scss
app/serializers/rest/status_serializer.rb

index a7b797368e1e5a0a7c382e3634fa96e47af02a1a,c9b76cb162041494a4dcd8972bbea2d3638c0008..906f489dbf49d0dea189d5acce84994dab77d9b3
@@@ -9,10 -9,11 +9,13 @@@ class REST::StatusSerializer < ActiveMo
    attribute :favourited, if: :current_user?
    attribute :reblogged, if: :current_user?
    attribute :muted, if: :current_user?
 +  attribute :bookmarked, if: :current_user?
    attribute :pinned, if: :pinnable?
 +  attribute :local_only if :local?
  
+   attribute :content, unless: :source_requested?
+   attribute :text, if: :source_requested?
    belongs_to :reblog, serializer: REST::StatusSerializer
    belongs_to :application, if: :show_application?
    belongs_to :account, serializer: REST::AccountSerializer