It doesn’t seem to exactly work.
Here is the code snippet which I modified.
def mark_post_as_read(session, topic_id, post_count):
url = f"https://{hostUrl}/topics/timings"
payload = {
"topic_id": topic_id,
"topic_time": post_count * 60000
}
for i in range(1, post_count):
payload[f"timings[{i}]"] = 60000
csrf = get_csrf(session)
r = session.post(
url,
json=payload,
headers={
"X-CSRF-Token": csrf,
"User-Agent": "Mozilla/5.0",
"Content-Type": "application/json"
}
)
print(f"[Read] {topic_id} → {r.status_code}")
if r.status_code != 200:
print(r.text[:300])
It still returns 200 but isn’t updated.
Thanks