Hello @zabrinapapin,
Please, once try using the same code like this:
function rtmedia_buddypress_mu_enabled() {
return true;
}
add_filter( 'replace_aws_img_urls_from_activities', 'rtmedia_buddypress_mu_enabled' );
Let us know if this helps you.
Thanks.