It's normal and Elgg core's standart action.
You can unregister 'email' notification method globally via custom plugin:
elgg_unregister_notification_method('email');
Look at this plugin also. I believe you can update it for Elgg 4.
It's completely normal for this to happen.
The system needs a way to keep track of which user is interested in which content. This is done by relationships.
If you comment on a blog you're probably interested in what others comment on that blog (maybe even in reaction to your comment). So we keep track.
Yes this can be a lot on larger communities, but do you experience problems with this? If so do you have a better system? We're always open to improving Elgg.
Seems, you can only do it using custom CSS styles
I managed to achieve this by passing
Then I copied elgg/views/default/page/components/table.php to mod/myplugin/views/default/page/components/my-custom-list-type and added my conditions in that file.
In this case, your initial code should work as is.
Try use:
'item_class' => "elgg-item $class_name_based_on_metadata",
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.