I think I've found a bug with
PUT /posts/:postId.
Thread titles are not updated unless the user or one of the users groups has been given the
Manage (move, merge, etc.) thread by anyone
moderator permission? With permissions set correctly (i.e. regular users have no mod permissions, but can edit titles in a specific forum section), post body is updated fine (via api), and user can edit their own title on the forum - but title doesn't update via the api. XF ver 1.5.22. BdApi ver 1.6.1.
Any chance you could take a look at this?
Edit: Upgraded to 1.6.3 and get this error on attempting post:
Parse error: syntax error, unexpected ')' in \library\bdApi\ControllerApi\Post.php on line 566
I've just checked and this is due to an extra comma at the end of the line. Edit 3: Just submitted this as an issue on github
Edit 2: I fixed the error with the additional comma. From initial testing I think the updating title permissions issue is fixed. Noticed an issue in the logs though - anything to do with HTML in the return object - it shows
(object:XenForo_BbCode_TextWrapper)
instead of a snippet of the actual HTML. (The actual output on the client end looks fine though).