Fix X/Twitter posting — add who_can_reply_post and __type params

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-18 04:02:55 -06:00
parent 90e51698b8
commit c30a75cc8f
+3 -1
View File
@@ -1119,7 +1119,9 @@ def post_to_social(metadata: dict, episode_slug: str, image_path: str = None):
short += f"\n\n{hashtags}"
content = short[:max_len]
settings = {"post_type": "post"}
settings = {"__type": platform, "post_type": "post"}
if platform == "x":
settings["who_can_reply_post"] = "everyone"
if "channel" in intg_config:
settings["channel"] = intg_config["channel"]