aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorcascode <cascode@amplifie.red>2019-04-02 10:51:33 +0000
committerlambda <lain@soykaf.club>2019-04-02 10:51:33 +0000
commit95c92c49c928340a479717aa171dcb83585f3275 (patch)
treed2a0b17ec0850518e1570ca47bdc95be7eb641d5 /lib
parent9305e241cbbf78c634576dec58fb383563b39c58 (diff)
downloadpleroma-95c92c49c928340a479717aa171dcb83585f3275.tar.gz
Fix account lookup for nicknames beginning with numbers
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/flake_id.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/flake_id.ex b/lib/pleroma/flake_id.ex
index 4259d5718..58ab3650d 100644
--- a/lib/pleroma/flake_id.ex
+++ b/lib/pleroma/flake_id.ex
@@ -46,7 +46,7 @@ defmodule Pleroma.FlakeId do
def from_string(string) when is_binary(string) and byte_size(string) < 18 do
case Integer.parse(string) do
- {id, _} -> <<0::integer-size(64), id::integer-size(64)>>
+ {id, ""} -> <<0::integer-size(64), id::integer-size(64)>>
_ -> nil
end
end