]> cat aescling's git repositories - mastodon.git/commitdiff
Fix it as tagged_request of accounts_controller is not addressable_uri (#9976)
authorTakeshi Umeda <noel.yoshiba@gmail.com>
Tue, 5 Feb 2019 14:11:11 +0000 (23:11 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Tue, 5 Feb 2019 14:11:11 +0000 (15:11 +0100)
app/controllers/accounts_controller.rb

index cbf1a8287b97cb1b5c1949099b4a85eaedd6723c..cad2ecf3fea1c31001719aa31367791e74b5933d 100644 (file)
@@ -116,7 +116,7 @@ class AccountsController < ApplicationController
   end
 
   def tag_requested?
-    request.path.ends_with?("/tagged/#{params[:tag]}")
+    request.path.ends_with?(Addressable::URI.parse("/tagged/#{params[:tag]}").normalize)
   end
 
   def filtered_status_page(params)