private
def set_account
- @account = Account.find_local!(params[:account_username])
+ @account = Account.find_local!(params[:account_username]) if params[:account_username]
end
def body
include RoutingHelper
attributes :id, :type, :following, :followers,
- :inbox, :outbox, :preferred_username,
- :name, :summary, :url
+ :inbox, :outbox, :shared_inbox,
+ :preferred_username, :name, :summary,
+ :url
has_one :public_key, serializer: ActivityPub::PublicKeySerializer
account_outbox_url(object)
end
+ def shared_inbox
+ inbox_url
+ end
+
def preferred_username
object.username
end
resource :inbox, only: [:create], module: :activitypub
end
+ resource :inbox, only: [:create], module: :activitypub
+
get '/@:username', to: 'accounts#show', as: :short_account
get '/@:username/with_replies', to: 'accounts#show', as: :short_account_with_replies
get '/@:username/media', to: 'accounts#show', as: :short_account_media