mirror of
https://github.com/mastodon/mastodon.git
synced 2026-09-08 11:07:24 -05:00
Fix Performance/DeletePrefix cop (#24796)
This commit is contained in:
@@ -59,7 +59,7 @@ class AuthorizeInteractionsController < ApplicationController
|
||||
end
|
||||
|
||||
def uri_param
|
||||
params[:uri] || params.fetch(:acct, '').gsub(/\Aacct:/, '')
|
||||
params[:uri] || params.fetch(:acct, '').delete_prefix('acct:')
|
||||
end
|
||||
|
||||
def set_body_classes
|
||||
|
||||
Reference in New Issue
Block a user