From 94c8900dcbc5f346efe6f938b2c2f3a0964447d3 Mon Sep 17 00:00:00 2001 From: alemi Date: Mon, 10 Jun 2024 03:22:25 +0200 Subject: [PATCH] fix: oops uid not oid honestly these fn names looked cool but were probably a bad choice --- upub/routes/src/activitypub/actor/following.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upub/routes/src/activitypub/actor/following.rs b/upub/routes/src/activitypub/actor/following.rs index 49ca9ae..d3039ff 100644 --- a/upub/routes/src/activitypub/actor/following.rs +++ b/upub/routes/src/activitypub/actor/following.rs @@ -16,7 +16,7 @@ pub async fn get( // instance, but that's annoying because means running a COUNT every time, so likely this will // keep answering 0 - let count = match model::actor::Entity::find_by_ap_id(&ctx.oid(&id)) + let count = match model::actor::Entity::find_by_ap_id(&ctx.uid(&id)) .find_also_related(model::config::Entity) .one(ctx.db()) .await? @@ -67,7 +67,7 @@ pub async fn page( let hidden = { // TODO i could avoid this query if ctx.uid(id) == Identity::Local { id } - match model::actor::Entity::find_by_ap_id(&ctx.oid(&id)) + match model::actor::Entity::find_by_ap_id(&ctx.uid(&id)) .find_also_related(model::config::Entity) .one(ctx.db()) .await?