Show only public posts in local timeline
This commit is contained in:
parent
0f5294db24
commit
5fc17effaa
1 changed files with 2 additions and 2 deletions
|
@ -367,7 +367,7 @@ pub async fn get_local_timeline(
|
||||||
JOIN actor_profile ON post.author_id = actor_profile.id
|
JOIN actor_profile ON post.author_id = actor_profile.id
|
||||||
WHERE
|
WHERE
|
||||||
actor_profile.actor_json IS NULL
|
actor_profile.actor_json IS NULL
|
||||||
AND {visibility_filter}
|
AND post.visibility = {visibility_public}
|
||||||
AND ($max_post_id::uuid IS NULL OR post.id < $max_post_id)
|
AND ($max_post_id::uuid IS NULL OR post.id < $max_post_id)
|
||||||
ORDER BY post.id DESC
|
ORDER BY post.id DESC
|
||||||
LIMIT $limit
|
LIMIT $limit
|
||||||
|
@ -375,7 +375,7 @@ pub async fn get_local_timeline(
|
||||||
related_attachments=RELATED_ATTACHMENTS,
|
related_attachments=RELATED_ATTACHMENTS,
|
||||||
related_mentions=RELATED_MENTIONS,
|
related_mentions=RELATED_MENTIONS,
|
||||||
related_tags=RELATED_TAGS,
|
related_tags=RELATED_TAGS,
|
||||||
visibility_filter=build_visibility_filter(),
|
visibility_public=i16::from(&Visibility::Public),
|
||||||
);
|
);
|
||||||
let query = query!(
|
let query = query!(
|
||||||
&statement,
|
&statement,
|
||||||
|
|
Loading…
Reference in a new issue