diff --git a/crates/api_common/src/post.rs b/crates/api_common/src/post.rs index 0118fd20e..50308ccda 100644 --- a/crates/api_common/src/post.rs +++ b/crates/api_common/src/post.rs @@ -110,7 +110,7 @@ pub struct GetPosts { pub show_nsfw: Option, /// Whether to automatically mark fetched posts as read. #[cfg_attr(feature = "full", ts(optional))] - pub auto_mark_fetched_posts_as_read: Option, + pub mark_as_read: Option, #[cfg_attr(feature = "full", ts(optional))] /// If true, then only show posts with no comments pub no_comments_only: Option, diff --git a/crates/apub/src/api/list_posts.rs b/crates/apub/src/api/list_posts.rs index 6cfbe18b6..02e0b0d77 100644 --- a/crates/apub/src/api/list_posts.rs +++ b/crates/apub/src/api/list_posts.rs @@ -96,7 +96,7 @@ pub async fn list_posts( // If in their user settings (or as part of the API request), auto-mark fetched posts as read if let Some(local_user) = local_user { if data - .auto_mark_fetched_posts_as_read + .mark_as_read .unwrap_or(local_user.auto_mark_fetched_posts_as_read) { let post_ids = posts.iter().map(|p| p.post.id).collect::>();