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

The /attachments edge not returning attachments #165

Open
djmrky opened this issue Jun 11, 2024 · 5 comments
Open

The /attachments edge not returning attachments #165

djmrky opened this issue Jun 11, 2024 · 5 comments

Comments

@djmrky
Copy link

djmrky commented Jun 11, 2024

Hi, I have a strange issue.

I have 2 workplace posts in the same group, one next to another and they both contain some images.
The API returns images as attachments for one post, but not for the other one.

What could be the reason for that?

Thanks

@NewAlexandria
Copy link
Contributor

NewAlexandria commented Jun 12, 2024

Is there any chance that the one with no attachments had its content pasted as rich media, and it's actually HTML that links to an external image?

@djmrky
Copy link
Author

djmrky commented Jun 12, 2024

All my Workplace posts are returning as MARKDOWN text, not HTML, there are no embedded images
The post that does not return the attachments on the "/attachments" edge looks like this:

image

And the post that returns the attachemtns correctly looks like this:
image

The only difference I've found is the "type" attribute
On the one that fails, the type is "album" and the one that returns the attahcments has "photo" for the "type" atrribute.

But I have no idea is there another endpoint to get this "album".
The Workplace group has the "/albums" edge, but nothing is returned there for my group
The message itself does not have the "/albums" edge

@djmrky
Copy link
Author

djmrky commented Jun 12, 2024

Ok, I've actually found a reason why the images from the post are not returned by the API.

If I create a post and just copy/paste some images (not file upload), they show up as Attachments in the API.

However, if I use this option
image

and choose a picture from file, this does not come back in the /attachments edge.

I have no idea how to get this image url via the API, this is not documented at all

@connortreacy
Copy link
Member

@djmrky thanks for the additional info, it helps us to investigate. Confirming I've also tested the group post API and not found a solution to retrieving this content. I've asked our API team to investigate if there's a known solution, and I'll circle back here with anything I learn.

@Martijnsmeitink
Copy link

Any news on this?

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

4 participants