Skip to content
TORNLIFE More

forum/{threadId}/posts missing thread in metadata

Started by jtower [2287159] on in Bugs & Issues.

2 replies · 28 views · thread synced · 10 days ago · View on torn.com
About this thread

Posts archived: 3 / 3 posts (100%) · the total is Torn's reply count + the opening post at the last fetch

Counted by TornLife from the archived posts.

Archived posts
3
Discussion span
→
People posting
3
Likes on archived posts
2
Posts by staff, officers and moderators
2
Authority score
55 / 100
Historical score
33 / 100
Story score
34 / 100
Engagement score
39 / 100

Most-liked replies

jtower [2287159]

When you use from/to attributes in the /forum/{threadId}/posts endpoint, it "loses" the thread id in the url of the metadata links (also, i'm not sure if it's intended, but the sort changes between original request and prev link)

 

https://api.torn.com/v2/forum/16454722/posts?sort=ASC&from=1754006400&to=1756684800&key={key}

 

 

 

"_metadata": {

"links": {

"prev": "https://api.torn.com/v2/forum/posts?&limit=20&sort=desc&to=1754139810",

"next": "https://api.torn.com/v2/forum/posts?&limit=20&sort=asc&from=1755544491"}}

 

 

---

 

Just for comparison, when you don't use from/to, it looks ok (the sort attribute gets lost though)

 

https://api.torn.com/v2/forum/16454722/posts?sort=ASC&key={key}

 

"_metadata": {"links": {"prev": null,"next": "https://api.torn.com/v2/forum/16454722/posts?&limit=20&stripTags=true&offset=20"}}