mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Fix featured hashtag URL being interpreted as media or with_replies (#12048)
Fix #12034
This commit is contained in:
parent
c7adf80827
commit
fa7dd5c2cd
1 changed files with 2 additions and 2 deletions
|
@ -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?
|
||||||
|
|
Loading…
Reference in a new issue