Detect number of new comments in a discussion
Hello,
how can I detect the number of new comments in a discussion for a user.
I've tried it with this:
but it doesn't work
how can I detect the number of new comments in a discussion for a user.
I've tried it with this:
$DiscussionManager = $this->Context->ObjectFactory->NewContextObject($this->Context, 'DiscussionManager');
$Discussion = $DiscussionManager->GetDiscussionById(45);
echo $Discussion->NewComments;
but it doesn't work
0
This discussion has been closed.
Comments