diff --git a/api/birdxplorer_api/routers/data.py b/api/birdxplorer_api/routers/data.py index 75ed648..bbcd9b5 100644 --- a/api/birdxplorer_api/routers/data.py +++ b/api/birdxplorer_api/routers/data.py @@ -101,6 +101,7 @@ def get_posts( offset: int = Query(default=0, ge=0), limit: int = Query(default=100, gt=0, le=1000), search_text: Union[None, str] = Query(default=None), + media: bool = Query(default=True), ) -> PostListResponse: if created_at_from is not None and isinstance(created_at_from, str): created_at_from = ensure_twitter_timestamp(created_at_from) @@ -115,6 +116,7 @@ def get_posts( search_text=search_text, offset=offset, limit=limit, + with_media=media, ) ) total_count = storage.get_number_of_posts(