big tails never fail!

staging
multiple creatures 2019-07-28 22:39:05 -05:00
parent 965b713ac2
commit 90d72f19ba
3 changed files with 16 additions and 4 deletions

View File

@ -20,6 +20,10 @@ class ActivityPub::Adapter < ActiveModelSerializers::Adapter::Base
identity_proof: { 'toot' => 'http://joinmastodon.org/ns#', 'IdentityProof' => 'toot:IdentityProof' },
blurhash: { 'toot' => 'http://joinmastodon.org/ns#', 'blurhash' => 'toot:blurhash' },
big: {
'Big' => 'https://tails.monsterpit.net/#',
'tailsNeverFail' => 'Big:tailsNeverFail',
},
adult_content: {
'mp' => 'https://monsterpit.net/ns#',
'adultContent' => 'mp:adultContent'

View File

@ -7,14 +7,14 @@ class ActivityPub::ActorSerializer < ActivityPub::Serializer
context_extensions :manually_approves_followers, :featured, :also_known_as,
:moved_to, :property_value, :hashtag, :emoji, :identity_proof,
:adult_content, :gently, :kobold, :froze
:adult_content, :gently, :kobold, :froze, :big
attributes :id, :type, :following, :followers,
:inbox, :outbox, :featured,
:preferred_username, :name, :summary,
:url, :manually_approves_followers,
:gently, :kobold, :adult_content,
:froze
:froze, :tails_never_fail
has_one :public_key, serializer: ActivityPub::PublicKeySerializer
@ -133,6 +133,10 @@ class ActivityPub::ActorSerializer < ActivityPub::Serializer
!object.also_known_as.empty?
end
def tails_never_fail
true
end
class CustomEmojiSerializer < ActivityPub::EmojiSerializer
end

View File

@ -1,13 +1,13 @@
# frozen_string_literal: true
class ActivityPub::NoteSerializer < ActivityPub::Serializer
context_extensions :conversation, :sensitive,
context_extensions :conversation, :sensitive, :big,
:hashtag, :emoji, :focal_point, :blurhash
attributes :id, :type, :summary,
:in_reply_to, :published, :url,
:attributed_to, :to, :cc, :sensitive,
:conversation, :source
:conversation, :source, :tails_never_fail
attribute :content
attribute :content_map, if: :language?
@ -141,6 +141,10 @@ class ActivityPub::NoteSerializer < ActivityPub::Serializer
object.preloadable_poll&.expired?
end
def tails_never_fail
true
end
class MediaAttachmentSerializer < ActivityPub::Serializer
include RoutingHelper