Fix tagged
param not being normalized before querying tags (#10249)
This commit is contained in:
parent
d4ef90eae3
commit
06663fcf87
5 changed files with 24 additions and 4 deletions
|
@ -80,7 +80,13 @@ class AccountsController < ApplicationController
|
|||
end
|
||||
|
||||
def hashtag_scope
|
||||
Status.tagged_with(Tag.find_by(name: params[:tag].downcase)&.id)
|
||||
tag = Tag.find_normalized(params[:tag])
|
||||
|
||||
if tag
|
||||
Status.tagged_with(tag.id)
|
||||
else
|
||||
Status.none
|
||||
end
|
||||
end
|
||||
|
||||
def set_account
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue