I would love to know how to edit the query of the Activity page to sort out some events like "Friendships", or "Changing Avatar", among other stuff. So far I've got to the /vendor/elgg/elgg/river.php, but I don't know if I'm in the right path. Also what relations would I need to filter out the events?
/**
* List river items
*
* @param array $options Any options from elgg_get_river() plus:
* item_view => STR Alternative view to render list items
* pagination => BOOL Display pagination links (true)
* no_results => STR|Closure Message to display if no items
*
* @return string
* @since 1.8.0
*/
function elgg_list_river(array $options = array()) {
elgg_register_rss_link();
$defaults = array(
'offset' => (int) max(get_input('offset', 0), 0),
'limit' => (int) max(get_input('limit', max(20, elgg_get_config('default_limit'))), 0),
'pagination' => true,
'list_class' => 'elgg-list-river',
'no_results' => '',
);
$options = array_merge($defaults, $options);
Regards.
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.