Forum Discussion

Gursimrat's avatar
Gursimrat
Leader
11 years ago

List of authors who edited the post

I can get the author who edited the post recently using /restapi/vc/messages/id/91/last_edit_author

Is there any way I can get the list of all the authors who posted in this post as I need to fetch the last 3 authors avatars.

8 Replies

  • I am not very sure on what your requirement is, but if my understanding is right and you want the last edit author for all/some posts in a particular message you can try out using below rest api and parse the xml for last_edit_author

    /restapi/vc/threads/id/${env.context.message.uniqueId}

  • Gursimrat's avatar
    Gursimrat
    Leader
    11 years ago
    In simple words, I want the list of all the authors who have edited a particular thread.
  • PaoloT's avatar
    PaoloT
    Lithium Alumni (Retired)
    11 years ago

    Hi Gursimrat 

     

    are you referring to a single message, or to a forum topic?

     

    Thanks,

  • PaoloT's avatar
    PaoloT
    Lithium Alumni (Retired)
    11 years ago

    Then in that case you could pull the latest three replies to the topic, get the author and the corresponding avatar.

  • Gursimrat's avatar
    Gursimrat
    Leader
    11 years ago
    I have already got the avatars of last three authors, now I want all the users who edited it, the count of all the users.
  • PaoloT's avatar
    PaoloT
    Lithium Alumni (Retired)
    11 years ago

    Hi,

     

    I don't t think there is a single REST call which gives you this information directly, so you will have to compose multiple REST calls to get this information. Please note that depending on your approach, there may be scenarios where this information is both expensive to retrieve and impractical to display in the UI (for example topics with hundreds or thousands of replies). A count may be okay in terms of UI but still expensive to calculate.

     

    Hope this helps,

    Paolo