SubscribeToThread not working?

SubscribeToThread not working?

This question is not answered

In Telligent Community 6.x I'm using $.telligent.evolution.put to make an ajax PUT request to /api.ashx/v2/{forumId}/threads/{threadId}.json with the following data:

{ ForumId: myForumId, ThreadId: myThreadId, SubscribeToThread: true }

I am logged in as a user. Both the given forum and thread exist. The API responds back with a ForumThread json object containing all the expected data, except SubscribeToThread is false.

When I could not get this to work, I created a custom service endpoint in C# to take the same parameters can call PublicApi.ForumThreads.Update. This also does not subscribe the accessing user to the given forum thread.

Where should I go from here? Is this a bug in Telligent?

All Replies
  • To add further confusion, we've discovered the following:

    Even though the API response always response with SubscribeToThread: false, a record is created in te_forum_threadUserTracking.

    When I get a thread object from $core_v2_forumThread.Get(), the IsSubscribed data member is always false, even if there is a record in te_forum_threadUserTracking.

  • Were running into the same issue with 6.1.

  • Not sure if this fix will work for you but it resolved the issue for us. We turned the caching off on the forum widget and modified the widget with the following code

     

    http://telligent.com/community/developers/w/developer6/22004.core-v2-forumreply-widget-extension.aspx

  • I tried disabling caching, but that did not fix the problem.

    Glad to hear you got around this problem. Unfortunately I need  to let user's subscribe to a thread without posting a reply, so I can't use that code sample. I have a checkbox with a jQuery change handler that attempts to subscribe the user by making an ajax request to the REST API.