Skip to content
This repository has been archived by the owner on Jun 13, 2020. It is now read-only.

JSON API doesn't reference multiple images in a post #113

Closed
hounsell opened this issue Sep 28, 2014 · 2 comments
Closed

JSON API doesn't reference multiple images in a post #113

hounsell opened this issue Sep 28, 2014 · 2 comments

Comments

@hounsell
Copy link

For example, in a thread where a post may contain multiple attached images (such as this one currently in /meta/ - https://8chan.co/meta/res/1874.html) the JSON (ie https://8chan.co/meta/res/1874.json) only references the first image.

I understand that this is probably to keep a reasonable level of compatibility with the halfchan API, and that you can still assume there's more images on a post thanks to the -0 in the filename, but maybe we could introduce some extra fields for multi-image posts? Maybe a comma-separated collection of fields (ie, filename, size, etc) for each extra image?

@czaks
Copy link
Collaborator

czaks commented Sep 28, 2014

4chan/4chan-API#17
4chan/4chan-API#18

we need to agree on a format, possibly with as much imageboards as possible.

my suggestion would be a files field, being an array of objects (describing ALL images, even the first one):

  • tim
  • filename
  • ext
  • fsize
  • md5 (impossible with our current db schema)
  • w
  • h
  • tn_w
  • tn_h
  • filedeleted
  • spoiler

@ctrlcctrlv
Copy link
Owner

i fixed this a long time ago

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

No branches or pull requests

4 participants