If the course has activity completion enabled, and the forum is marked to be considered completed when is viewed we have a problem.
The current web service implementation does not mark the forum as viewed, there are several ways to fix that:
- Fix the function to marking it as viewed when the forum_discussion_get_posts funciton is executed
- Create a new external function just for marking completition status
The first one is problematic, since some SIS can be invoking the function just for caching posts or display the posts in an intranet (even using users token and not admin accounts)
This is the same problem that we have with logging and events