Reputation: 12449
Is it possible to exclude some followers when adding an activity?
Let's say user:2
, user:3
, user:4
follow user:1
.
When any activity is added on user:1
feed, its copied into all it's followers feed (that' right, I know it).
But, if I want to exclude user:4
from copying the activity while keeping him the follower of user:1
(only in some special cases). Is it possible to do?
Upvotes: 1
Views: 51
Reputation: 4306
Unfortunately, no, our fan-out will always go to all followers when user:1
inserts their activity.
A work-around you could build, though, would be to allow the activity to fan-out to user:4
, but then issue a delete on the activity in user:4
's feed. This won't delete the activity everywhere else, only in user:4
's feed.
Keep in mind that if you do these API calls back-to-back in your software, the fan-out may not yet be completed to user:4
's feed, so the delete might silently fail.
As a side note, if you were to delete it from user:1
's feed where the activity originated, it would fan-out that delete and remove that record everywhere else.
Upvotes: 1