forked from alemi/upub
fix: dont personalize global timelines
so they can stay cached for everyone, also queries should be faster
This commit is contained in:
parent
68effabbd6
commit
6d9bc1fa5b
2 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
use apb::{Activity, ActivityType, Base};
|
||||
use axum::{extract::{Query, State}, http::StatusCode, Json};
|
||||
use sea_orm::{ActiveValue::{NotSet, Set}, EntityTrait};
|
||||
use sea_orm::{sea_query::IntoCondition, ActiveValue::{NotSet, Set}, ColumnTrait, EntityTrait};
|
||||
use upub::{model::job::JobType, Context};
|
||||
|
||||
use crate::{AuthIdentity, Identity, builders::JsonLD};
|
||||
|
@ -21,7 +21,7 @@ pub async fn page(
|
|||
) -> crate::ApiResult<JsonLD<serde_json::Value>> {
|
||||
crate::builders::paginate_feed(
|
||||
upub::url!(ctx, "/inbox/page"),
|
||||
auth.filter(),
|
||||
upub::model::addressing::Column::Actor.is_null().into_condition(),
|
||||
ctx.db(),
|
||||
page,
|
||||
auth.my_id(),
|
||||
|
|
|
@ -16,7 +16,7 @@ pub async fn page(
|
|||
crate::builders::paginate_feed(
|
||||
upub::url!(ctx, "/outbox/page"),
|
||||
Condition::all()
|
||||
.add(auth.filter())
|
||||
.add(upub::model::addressing::Column::Actor.is_null())
|
||||
.add(upub::model::actor::Column::Domain.eq(ctx.domain().to_string())),
|
||||
ctx.db(),
|
||||
page,
|
||||
|
|
Loading…
Reference in a new issue