From 936be4edbb2dda1816424767cb9f316a937b2d27 Mon Sep 17 00:00:00 2001 From: Oneric Date: Fri, 2 May 2025 21:33:32 +0200 Subject: [PATCH] deps: upgrade flake_id to fix crash Currently FlakeId.flake_id crashes if receiving non-UTF-8 binaries, but we use it e.g. in the /:nick_or_id path used in akkoma-fe user profiles. With the upgrade such invalid binaries simply fail the id check. Reported-in: https://meta.akkoma.dev/t/frontend-unicodeconversionerror/847 --- mix.exs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mix.exs b/mix.exs index d45b802fa..87a6b2b60 100644 --- a/mix.exs +++ b/mix.exs @@ -174,7 +174,9 @@ defp deps do {:pot, "~> 1.0"}, {:ex_const, "~> 0.2"}, {:plug_static_index_html, "~> 1.0.0"}, - {:flake_id, "~> 0.1.0"}, + {:flake_id, + git: "https://akkoma.dev/AkkomaGang/flake_id.git", + ref: "5a68513f7e7353706e788781eff6e56bf00bb41b"}, {:concurrent_limiter, git: "https://akkoma.dev/AkkomaGang/concurrent-limiter.git", ref: "a9e0b3d64574bdba761f429bb4fba0cf687b3338"},