Navigate to System > Manage > Plugins then edit "Content - CB Activity" and under "Comments" ensure "Stream" is set to "Articles".
Thanks, it works now. The default value was Profile Fields.
You'd need to look into Joomla API regarding this. I've no idea what view you're trying to turn comments off on. For example when directly viewing an article its context is com_content.article. Everything in Joomla basically has a context applied to it to determine where a Joomla event was fired. You can also just exclude by category id as I understood that's what you were wanting. This will exclude for both Comments and Likes though there is no functionality to just exclude 1 of those features.
My knowledge is currently not enough to learn the Joomla API.
Yes, I wanted to exclude some categories; there were no comments or likes in the articles, but I also wanted to disable one of the two functions for articles, for example, leave only likes.
But if this is not possible, then I will use what I have. Perhaps in the future you will implement such an opportunity.