From 7081fd310ab7258b18d419133945ce31486de403 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 8 Apr 2026 09:01:06 +0000 Subject: [PATCH] Change default content source from 'user' to 'trending' for public/community posts Agent-Logs-Url: https://github.com/thaitien280401-stack/RedditVideoMakerBot/sessions/95324e20-c917-455f-9c54-fde037e8005b Co-authored-by: thaitien280401-stack <271128961+thaitien280401-stack@users.noreply.github.com> --- threads/threads_client.py | 2 +- utils/.config.template.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/threads/threads_client.py b/threads/threads_client.py index 9fc039e..ddc672c 100644 --- a/threads/threads_client.py +++ b/threads/threads_client.py @@ -1344,7 +1344,7 @@ def get_threads_posts(POST_ID: str = None) -> dict: max_comment_length = int(thread_config.get("max_comment_length", 500)) min_comment_length = int(thread_config.get("min_comment_length", 1)) min_comments = int(thread_config.get("min_comments", 5)) - source = thread_config.get("source", "user") + source = thread_config.get("source", "trending") print_step("Đang lấy nội dung từ Threads...") diff --git a/utils/.config.template.toml b/utils/.config.template.toml index 638aac4..3e80f59 100644 --- a/utils/.config.template.toml +++ b/utils/.config.template.toml @@ -5,7 +5,7 @@ access_token = { optional = false, nmin = 10, explanation = "Threads API access user_id = { optional = false, nmin = 1, explanation = "Threads user ID của bạn", example = "12345678" } [threads.thread] -source = { optional = true, default = "user", options = ["user", "trending", "google_trends"], explanation = "Nguồn lấy bài viết: 'user' (từ user cụ thể), 'trending' (từ Trending now), hoặc 'google_trends' (từ khóa Google Trends). Mặc định: user", example = "user" } +source = { optional = true, default = "trending", options = ["user", "trending", "google_trends"], explanation = "Nguồn lấy bài viết: 'trending' (từ Trending now - mặc định), 'google_trends' (từ khóa Google Trends), hoặc 'user' (từ user cụ thể)", example = "trending" } target_user_id = { optional = true, default = "", explanation = "ID user muốn lấy threads. Để trống dùng user của bạn. Chỉ dùng khi source = 'user'.", example = "87654321" } post_id = { optional = true, default = "", explanation = "ID cụ thể của thread. Để trống để tự động chọn.", example = "18050000000000000" } keywords = { optional = true, default = "", type = "str", explanation = "Từ khóa lọc threads, phân cách bằng dấu phẩy.", example = "viral, trending, hài hước" }