Forum Discussion

justageek's avatar
justageek
Helper
11 years ago

Get posts that contain images that are in moderation.

We need a way, via the API, to grab posts that have images in them that are "in moderation".  In general, I cannot find out how to get the data that is listed in the "Image Moderation" area of Lithium, so any help in that is also appreciated.

 

Our primary need is to get image moderation data where the images are associated with posts or replies.

1 Reply

  • YuriK's avatar
    YuriK
    Khoros Expert
    11 years ago

    Hey justageek,

     

    Looks like there's not a great way to do this at the moment. One thing that I was able to do, which isn't really a workable solution for a larger community is as follows:

     

    1. Make a call to get unmoderated images "/uploads/images/where/moderation/status/eq/unmoderated", this will get all unmoderated images (Uploaded Images API Documentation)
    2. Call "/images" to get all images associated with messages (if you know what board or category the messages are in you can scope the call to that board/category). This will get you back a list of image to message associations, note the same image can appear in multiple messages. (Images Call Documentation)
    3. Cross reference the image ids from step 1 with images returned in step 2 and retrieve the associated message

     

    I would suggest that you submit an idea to the Ideas Board as well with your request as well.

     

    Hope this helps,

     

    Yuri