fix: your inbox contains posts by you

This commit is contained in:
əlemi 2024-04-26 13:48:57 +02:00
parent 08b53bf416
commit ab91a4c7bc
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -35,7 +35,10 @@ pub async fn page(
crate::server::builders::paginate(
url!(ctx, "/users/{id}/inbox/page"),
Condition::all().add(model::addressing::Column::Actor.eq(uid)),
Condition::any()
.add(model::addressing::Column::Actor.eq(uid))
.add(model::object::Column::AttributedTo.eq(uid))
.add(model::activity::Column::Actor.eq(uid)),
ctx.db(),
page,
)