From f286c23900923c6da1b7b7032ced172604962520 Mon Sep 17 00:00:00 2001 From: Yamagishi Kazutoshi Date: Thu, 10 May 2018 21:38:19 +0900 Subject: [PATCH] Add alternate for RSS (#7436) --- app/views/accounts/show.html.haml | 1 + app/views/tags/show.html.haml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/app/views/accounts/show.html.haml b/app/views/accounts/show.html.haml index bbf2139a5e..cfdd3a9452 100644 --- a/app/views/accounts/show.html.haml +++ b/app/views/accounts/show.html.haml @@ -8,6 +8,7 @@ %meta{ name: 'robots', content: 'noindex' }/ %link{ rel: 'salmon', href: api_salmon_url(@account.id) }/ + %link{ rel: 'alternate', type: 'application/rss+xml', href: account_url(@account, format: 'rss') }/ %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) }/ diff --git a/app/views/tags/show.html.haml b/app/views/tags/show.html.haml index d46f359992..f6e452f188 100644 --- a/app/views/tags/show.html.haml +++ b/app/views/tags/show.html.haml @@ -2,6 +2,8 @@ = "##{@tag.name}" - content_for :header_tags do + %link{ rel: 'alternate', type: 'application/rss+xml', href: tag_url(@tag, format: 'rss') }/ + %script#initial-state{ type: 'application/json' }!= json_escape(@initial_state_json) = javascript_pack_tag 'about', integrity: true, crossorigin: 'anonymous' = render 'og'