More implementation

This commit is contained in:
2025-07-18 15:53:38 -07:00
parent 90ac9a1e43
commit 50a4bfcac7
5 changed files with 19 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ use letterbox_shared::compute_color;
use maplit::hashmap;
use scraper::Selector;
use sqlx::postgres::PgPool;
use tracing::{error, info, instrument};
use tracing::{error, info, instrument, warn};
use url::Url;
use crate::{
@@ -86,6 +86,10 @@ pub async fn search(
query: &Query,
) -> Result<Vec<(i32, ThreadSummary)>, async_graphql::Error> {
info!("search({after:?} {before:?} {first:?} {last:?} {query:?}");
if query.is_snoozed {
warn!("TODO implement snooze for newsreader::search");
return Ok(Vec::new());
}
if !is_newsreader_query(query) {
return Ok(Vec::new());
}