diff --git a/core/media/__pycache__/truth_social_retriever.cpython-312.pyc b/core/media/__pycache__/truth_social_retriever.cpython-312.pyc index 963507a..3790dfa 100644 Binary files a/core/media/__pycache__/truth_social_retriever.cpython-312.pyc and b/core/media/__pycache__/truth_social_retriever.cpython-312.pyc differ diff --git a/core/media/truth_social_retriever.py b/core/media/truth_social_retriever.py index e797897..477ce8a 100644 --- a/core/media/truth_social_retriever.py +++ b/core/media/truth_social_retriever.py @@ -122,6 +122,18 @@ class TruthSocialRetriever: posts = data.get("posts", [])[:limit] else: posts = data.get("posts", []) + + if len(posts) == 1: + try: + max_id = posts[0].get("id") + params["next_max_id"] = max_id + response = requests.get(base_url, headers=headers, params=params) + response.raise_for_status() # 检查 HTTP 错误 + data = response.json() + posts.extend(data.get("posts", [])) + except Exception as e: + logger.error(f"获取下一页帖子失败: {e}") + pass results = [] if posts: