logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 1dba3bc4dcae9edf3df73b5855b010c9ba451fce
parent 9983799ccb19585ad8ed0de2546d71090b094277
Author: marcin mikołajczak <git@mkljczk.pl>
Date:   Sun, 23 Jan 2022 12:29:01 +0100

Preserve order of mentioned users

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>

Diffstat:

Mlib/pleroma/user.ex1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex @@ -2279,6 +2279,7 @@ defmodule Pleroma.User do def get_ap_ids_by_nicknames(nicknames) do from(u in User, where: u.nickname in ^nicknames, + order_by: fragment("array_position(?, ?)", ^nicknames, u.nickname), select: u.ap_id ) |> Repo.all()