Fix tagged
param not being normalized before querying tags (#10249)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user