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>
pull/2482/head
copilot-swe-agent[bot] 2 days ago committed by GitHub
parent fe0e54e9b9
commit 7081fd310a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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...")

@ -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" }

Loading…
Cancel
Save