fix: oops uid not oid
honestly these fn names looked cool but were probably a bad choice
This commit is contained in:
parent
f75f0cc209
commit
94c8900dcb
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ pub async fn get<const OUTGOING: bool>(
|
||||||
// instance, but that's annoying because means running a COUNT every time, so likely this will
|
// instance, but that's annoying because means running a COUNT every time, so likely this will
|
||||||
// keep answering 0
|
// 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)
|
.find_also_related(model::config::Entity)
|
||||||
.one(ctx.db())
|
.one(ctx.db())
|
||||||
.await?
|
.await?
|
||||||
|
@ -67,7 +67,7 @@ pub async fn page<const OUTGOING: bool>(
|
||||||
|
|
||||||
let hidden = {
|
let hidden = {
|
||||||
// TODO i could avoid this query if ctx.uid(id) == Identity::Local { id }
|
// 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)
|
.find_also_related(model::config::Entity)
|
||||||
.one(ctx.db())
|
.one(ctx.db())
|
||||||
.await?
|
.await?
|
||||||
|
|
Loading…
Reference in a new issue