Skip to content

Commit

Permalink
port tootsuite#10502 to monsterfork: Add an RSS feed tagged to a publ…
Browse files Browse the repository at this point in the history
…ic profile page

* Add featured tag support to rss feed on public account page

* fix codeing style
  • Loading branch information
noellabo authored and multiple creatures committed Feb 21, 2020
1 parent 4363c65 commit 892b9a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/accounts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def reblogs_requested?
end

def tag_requested?
request.path.ends_with?(Addressable::URI.parse("/tagged/#{params[:tag]}").normalize)
request.path.split('.').first.ends_with?(Addressable::URI.parse("/tagged/#{params[:tag]}").normalize)
end

def filtered_status_page(params)
Expand Down
1 change: 1 addition & 0 deletions app/views/accounts/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- if @account.user&.setting_noindex
%meta{ name: 'robots', content: 'noindex' }/

%link{ rel: 'alternate', type: 'application/rss+xml', href: @rss_url }/
%link{ rel: 'alternate', type: 'application/activity+json', href: ActivityPub::TagManager.instance.uri_for(@account) }/

- if @older_url
Expand Down

0 comments on commit 892b9a8

Please sign in to comment.