Redirect to account status page for page of status stream entry (#7104)
Commit 519119f657
missed a change for
stream entry page. Instead of duplicating the change, redirect to account
status page. It would also help crawlers (of search engines, for example)
to understand a stream entry URL and its corresponding status URL points
to the same page.
This commit is contained in:
parent
7c43ed04fe
commit
a1049e9380
2 changed files with 4 additions and 9 deletions
|
@ -15,8 +15,7 @@ class StreamEntriesController < ApplicationController
|
|||
def show
|
||||
respond_to do |format|
|
||||
format.html do
|
||||
@ancestors = @stream_entry.activity.reply? ? cache_collection(@stream_entry.activity.ancestors(current_account), Status) : []
|
||||
@descendants = cache_collection(@stream_entry.activity.descendants(current_account), Status)
|
||||
redirect_to short_account_status_url(params[:account_username], @stream_entry.activity) if @type == 'status'
|
||||
end
|
||||
|
||||
format.atom do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue