This can be done with inbox forwarding or special activities ([FEP-171b](https://codeberg.org/fediverse/fep/src/branch/main/fep/171b/fep-171b.md ) or [FEP-1b12](https://codeberg.org/fediverse/fep/src/branch/main/fep/171b/fep-171b.md )).
Selective relays may be used for other things though. There is https://github.com/dtp-mstdn-jp/selective-relay that apparently can filter activities by hashtags, domains and number of attachments
