gab-social/app/serializers/activitypub/gab_image_serializer.rb

12 lines
272 B
Ruby

# frozen_string_literal: true
class ActivityPub::GabImageSerializer < ActivityPub::ImageSerializer
def url
object
.sub('gab://avatar/', 'https://gab.com/media/user/')
.sub('gab://header/', 'https://gab.com/media/user/')
end
def media_type; end
end