[federation] events recieved from not subscribed instances
Description
Some events are received by ActivityPub from instances my instance has not subscribed to (following).
Steps to Reproduce
- subscriptions are in place
- wait
Expected behaviour:
nothing outside of subscriptions.
Actual behaviour:
events from not subscribed instances are stored in the instance.
Reproduces how often:
unsure
Versions
2.0.2
Additional Information
I use this to get which events should not be there
select * from events e left join actors a on (e.organizer_actor_id = a.id)
where domain is not null -- not local
and domain not in ( -- not subscrided
select a.domain from followers as fo left join actors as a on (fo.target_actor_id = a.id)
where actor_id = 4) -- my relay
Edited by setop