What Am I Missing? - Moderate ForumPost via C# and API

What Am I Missing? - Moderate ForumPost via C# and API

This question is not answered

I like to consider myself fairly handy, but the Forums API has me stumped as to how to moderate a post.

Say that the forum id is 1 and the post id is 2 and ForumsService.GetModeratedPosts(1) returns, as expected a PagedList of ForumPosts...

then what...

I tried setting IsPublished = true and calling Update(), but this throws an exception that the user is not allowed to reply. I DO have my moderator set to not be allowed to reply, is THAT the problem. 

I also tried ForumsService UpdateForumPostAttribute(2, "IsPublished", "true"). This throws an exception indicating that my moderator does not have permission to update that attribute.

So, anyway, instead of worrying about syntax her, could someone tell me in general how to moderate a post through the API.

By the way, in case it wasn't apparent, I'm dealing with this through c# and the CommunityServer.WebServices.dll

All Replies
  • post.IsPublished = true;

    forumService.UpdateForumPost(post);

    This worked, but I needed to allow the Forum - Post Replies permission. Is this entirely necessary? The requirements of the workflow I'm working on is that the moderator can just approve/reject a post.

  • From what I've been able to tell, IsPublished is the correct property to set AND the user will need

    Forum - Moderate, Forum - Post Replies and Forum Edit Posts to set the IsPublished value. Does this sound right, or am I going about this the wrong way?

  • What version of Telligent Community are you using?

  • Your version: 5.0.40807.7666

  • Moderating a post seems to require

    "Forum - Edit Post" and "Forum - Post Replies" permissions in addition to "Forum - Moderate"

  • So, what we've learned is ... ?