logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

outbox_serializer.rb (231B)


  1. # frozen_string_literal: true
  2. class ActivityPub::OutboxSerializer < ActivityPub::CollectionSerializer
  3. def self.serializer_for(model, options)
  4. return ActivityPub::ActivitySerializer if model.is_a?(Status)
  5. super
  6. end
  7. end