Fix featured hashtag URL being interpreted as media or with_replies (#12048)

Fix #12034
lolsob-rspec
Eugen Rochko 2019-10-02 04:53:17 +02:00 committed by GitHub
parent 36199a7bd6
commit 28c19c66ba
1 changed files with 2 additions and 2 deletions

View File

@ -129,11 +129,11 @@ class AccountsController < ApplicationController
end end
def media_requested? def media_requested?
request.path.ends_with?('/media') request.path.ends_with?('/media') && !tag_requested?
end end
def replies_requested? def replies_requested?
request.path.ends_with?('/with_replies') request.path.ends_with?('/with_replies') && !tag_requested?
end end
def tag_requested? def tag_requested?