0
0
Fork 0

Add alternate links to ActivityPub resources from HTML/HEAD variants (#4586)

This commit is contained in:
Eugen Rochko 2017-08-13 00:45:04 +02:00 committed by GitHub
parent b7370ac8ba
commit a2aeacbfee
7 changed files with 24 additions and 4 deletions

View file

@ -7,6 +7,7 @@
%link{ rel: 'salmon', href: api_salmon_url(@account.id) }/
%link{ rel: 'alternate', type: 'application/atom+xml', href: account_url(@account, format: 'atom') }/
%link{ rel: 'alternate', type: 'application/activity+json', href: ActivityPub::TagManager.instance.uri_for(@account) }/
%meta{ property: 'og:type', content: 'profile' }/
= render 'og', account: @account, url: short_account_url(@account, only_path: false)