apaskett
11 years agoContributor
Image and message association error in REST API
We've created an image feed on our Community home page which leverages the REST API, to pull all community images (rest("images?sort_by=date&page_size=${pageSize}&page=${pageNumber}").image_associations)
We ran into an issue today, where an image was being pulled, but the associated message did not exist. Because the message doesn't exist, it's throwing an error in the endpoint which causes the component to not load any images.
- Why is the image still showing up in this feed when the message it was posted in is no longer accessible?
- Is there a way to delete posts in a way for images not to appear in this feed?
- We're having difficulty finding information about the original message since all we have is the message ID - no indication of which discussion style, board/category, user or time this message is associated and no way to diagnose the issue. Is there a way to search for a message across the entire community by just the message id?
Thanks for your help!