A lot of fixes from a live test
This commit is contained in:
parent
f1654da7ad
commit
47d50b0e39
17 changed files with 59 additions and 27 deletions
|
@ -19,7 +19,12 @@ class XrdController < ApplicationController
|
|||
end
|
||||
|
||||
def username_from_resource
|
||||
params[:resource].split('@').first.gsub('acct:', '')
|
||||
if params[:resource].start_with?('acct:')
|
||||
params[:resource].split('@').first.gsub('acct:', '')
|
||||
else
|
||||
url = Addressable::URI.parse(params[:resource])
|
||||
url.path.gsub('/users/', '')
|
||||
end
|
||||
end
|
||||
|
||||
def pem_to_magic_key(public_key)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue