logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: ce5acd4158a351c59a79a4a0692eb2ef9775b554
parent 0d3f1be2307c778c3f1e59139a45341a57433de2
Author: Mark Felder <feld@feld.me>
Date:   Fri,  8 Dec 2023 18:10:22 -0500

get_cached_by_ap_id/1 returns a single result, not a tuple

Diffstat:

Mlib/pleroma/user.ex2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex @@ -2145,7 +2145,7 @@ defmodule Pleroma.User do end def get_public_key_for_ap_id(ap_id) do - with {:ok, %User{} = user} <- get_cached_by_ap_id(ap_id), + with %User{} = user <- get_cached_by_ap_id(ap_id), {:ok, public_key} <- public_key(user) do {:ok, public_key} else