fix: actor outbox should include viewed posts

This commit is contained in:
əlemi 2024-06-28 03:03:49 +02:00
parent 54e6b517e2
commit 37a812f3c6
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -23,7 +23,10 @@ pub async fn page(
upub::url!(ctx, "/actors/{id}/outbox/page"), upub::url!(ctx, "/actors/{id}/outbox/page"),
Condition::all() Condition::all()
.add(auth.filter_activities()) .add(auth.filter_activities())
.add(model::activity::Column::Actor.eq(&uid)), .add(Condition::any()
.add(model::activity::Column::Actor.eq(&uid))
.add(model::object::Column::AttributedTo.eq(&uid))
),
ctx.db(), ctx.db(),
page, page,
auth.my_id(), auth.my_id(),