fix: show stuff from self on own timeline
This commit is contained in:
parent
8a3211d07b
commit
baaaa55e9d
1 changed files with 5 additions and 2 deletions
|
@ -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(),
|
||||||
|
|
Loading…
Reference in a new issue