Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get full thread #726

Closed
Shura0 opened this issue Sep 29, 2018 · 4 comments
Closed

Cannot get full thread #726

Shura0 opened this issue Sep 29, 2018 · 4 comments

Comments

@Shura0
Copy link

Shura0 commented Sep 29, 2018

Seems like there is some issues with getting full thread with API.

I have a post:
https://mastodon.social/@taggetter/100808579981946019
and you can see it has 3 answers. API returns the same ("replies_count":3):

curl -sS https://mastodon.social/api/v1/statuses/100808579981946019/
{"id":"100808579981946019","created_at":"2018-09-29T10:27:37.678Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"https://mastodon.social/users/taggetter/statuses/100808579981946019","content":"\u003cp\u003eОписание моего ПВД по маршруту Пушкино - Черноголовка - Пушкино\u003cbr /\u003e\u003ca href=\"https://shura0.bitbucket.io/post/141.html\" rel=\" noopener\" target=\"_blank\"\u003e\u003cspan class=\"invisible\"\u003ehttps://\u003c/span\u003e\u003cspan class=\"ellipsis\"\u003eshura0.bitbucket.io/post/141.h\u003c/span\u003e\u003cspan class=\"invisible\"\u003etml\u003c/span\u003e\u003c/a\u003e\u003c/p\u003e","url":"https://mastodon.social/@taggetter/100808579981946019","replies_count":3,"reblogs_count":0,"favourites_count":0,"reblog":null,"application":{"name":"Web","website":null},"account":{"id":"339852","username":"taggetter","acct":"taggetter","display_name":"","locked":false,"bot":true,"created_at":"2018-04-27T08:25:48.956Z","note":"\u003cp\u003e\u003c/p\u003e","url":"https://mastodon.social/@taggetter","avatar":"https://mastodon.social/avatars/original/missing.png","avatar_static":"https://mastodon.social/avatars/original/missing.png","header":"https://mastodon.social/headers/original/missing.png","header_static":"https://mastodon.social/headers/original/missing.png","followers_count":0,"following_count":1,"statuses_count":1,"emojis":[],"fields":[]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}

But when I try to read the answers, I cannot:

$ curl -sS https://mastodon.social/api/v1/statuses/100808579981946019/context
{"ancestors":[],"descendants":[]}

How get full thread?

@Gargron
Copy link
Member

Gargron commented Sep 29, 2018

$ curl -sS https://mastodon.social/api/v1/statuses/100808579981946019/context

Gives me the answers.

@Shura0
Copy link
Author

Shura0 commented Sep 29, 2018

Yea, someone answered to my thread, but there is "replies_count":4, but /context returns only 2 posts.

P.S. hidden answers are from a server mastodon.wrk.ru.

@Gargron
Copy link
Member

Gargron commented Sep 29, 2018

Well, there is not supposed to be a difference between HTML and JSON output in the code. Are you logged in on one, but unauthenticated on the other? That could explain the difference.

@Shura0
Copy link
Author

Shura0 commented Sep 29, 2018

I'm not logged in Web and not logged in curl.
Moreover, if I'm authorized as taggetter on mastodon.social, I do not see the answers too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants