File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
lib/algora/accounts/schemas Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -300,10 +300,10 @@ defmodule Algora.Accounts.User do
300
300
defp type_from_provider ( :github , "Organization" ) , do: :organization
301
301
defp type_from_provider ( :github , _ ) , do: :individual
302
302
303
- def handle ( % User { handle: handle } ) , do: handle
304
- def handle ( % User { provider_login: handle } ) , do: handle
303
+ def handle ( % { handle: handle } ) , do: handle
304
+ def handle ( % { provider_login: handle } ) , do: handle
305
305
306
- def url ( % User { handle: handle , type: :individual } ) , do: "/@/#{ handle } "
307
- def url ( % User { handle: handle , type: :organization } ) , do: "/org/#{ handle } "
308
- def url ( % User { provider_login: handle } ) , do: "https://github.com/#{ handle } "
306
+ def url ( % { handle: handle , type: :individual } ) , do: "/@/#{ handle } "
307
+ def url ( % { handle: handle , type: :organization } ) , do: "/org/#{ handle } "
308
+ def url ( % { provider_login: handle } ) , do: "https://github.com/#{ handle } "
309
309
end
You can’t perform that action at this time.
0 commit comments