fix: show stuff from self on own timeline

This commit is contained in:
əlemi 2024-11-09 13:13:31 +01:00
parent 8a3211d07b
commit baaaa55e9d
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -1,5 +1,5 @@
use axum::{http::StatusCode, extract::{Path, Query, State}, Json}; use axum::{http::StatusCode, extract::{Path, Query, State}, Json};
use sea_orm::{sea_query::IntoCondition, ColumnTrait}; use sea_orm::{ColumnTrait, Condition};
use upub::Context; use upub::Context;
@ -37,7 +37,10 @@ pub async fn page(
crate::builders::paginate_feed( crate::builders::paginate_feed(
upub::url!(ctx, "/actors/{id}/inbox/page"), upub::url!(ctx, "/actors/{id}/inbox/page"),
upub::model::addressing::Column::Actor.eq(*internal).into_condition(), Condition::any()
.add(upub::model::addressing::Column::Actor.eq(*internal))
.add(upub::model::activity::Column::Actor.eq(uid))
.add(upub::model::object::Column::AttributedTo.eq(uid)),
ctx.db(), ctx.db(),
page, page,
auth.my_id(), auth.my_id(),