aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorlambda <lain@soykaf.club>2019-04-02 10:51:33 +0000
committerlambda <lain@soykaf.club>2019-04-02 10:51:33 +0000
commitb5d486d9ac40c051c23d23ef5a48685d08127904 (patch)
treed2a0b17ec0850518e1570ca47bdc95be7eb641d5 /lib
parent9305e241cbbf78c634576dec58fb383563b39c58 (diff)
parent95c92c49c928340a479717aa171dcb83585f3275 (diff)
downloadpleroma-b5d486d9ac40c051c23d23ef5a48685d08127904.tar.gz
Merge branch 'fix/nicknames-beginning-with-numbers' into 'develop'
Fix account lookup for nicknames beginning with numbers See merge request pleroma/pleroma!1003
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