With views, if you include arguments (stream owner) and select "include activity for the argument user's follower relationships" (for one way relationships), it displays incorrectly by including the activity of those who are following you rather than those you're following. This makes it impossible to view only your activity and the activities of those you're following, except you set that explicitly in rules.

I need the feature to work correctly because i want to create 2 separate views,

a.first one is for me: to see my status updates plus statuses with my name mentioned (@mention), and include the activity of those of whom i am following (one way rel),

b. second view is for people viewing my profile: to see only my status updates plus status updates with my name mentioned (@mention), but NOT INCLUDING the statuses of people whom i am following.

Comments

icecreamyou’s picture

Category: bug » support
Status: Active » Fixed

You should modify the Rules to assign different viewers for actions rather than modify the view directly.

smartsystems160’s picture

Hello,

Thank you for the quick response. I modified the rules and scenario "a" above works fine, but not scenario "b".

Maybe this illustration will explain my issue better: Lets say there are three users 1,2 and 3. User 1 is following user 2, and both have activity logs. With the current activity log rule visibility options, after setting the activity streams to display on follower relationship streams and visible to everyone, user 2's activity pops up on user 1's activity log (which is cool if user 1 is viewing his own activity log) but user 2's activity also pops up on user 1's activity log even when user 3 is viewing user 1's activity log (ie: activity of user being viewed). I need to filter out user 2's activity from user 1's activity logs when user 3 is viewing user 1's activity logs. User 2's activity should only be visible to user 3 if user 3 is viewing user 2's activity log.

The views arguments for "include activity for the argument user's follower relationships" could have solved this issue, as i would simply disallow activity from being posted to related user streams using rules, then i would use the views argument option to include these related user activity if i am creating a custom view for logged in user to see what his related users are doing.... This means i can have 2 separate views, one that includes activity logs of "logged in user" or "user being viewed" plus their related users activity logs, and another view which includes only activity log of "user being viewed". But the views argument option for "include activity for the argument user's follower relationships" displays incorrectly...

On the alternative, could the views argument selection be rewritten or added to "exclude activity for the argument user's relationships"? This way, i can use rules to create activity that is displayed on related user streams, then i can use views argument option to exclude the related user activity. Or better still, is there a custom php code i could add to the view to filter out the activity logs of users related to the "user being viewed"?

icecreamyou’s picture

There should be two different settings in the Rule that affects the visibility. One of them is whose stream it shows up on (in your example, activity from user 2 should show up in user 1's stream) and the other one is who can view the activity (only user 1, since it is showing up in user 1's stream).

Editing the view will not get you anywhere.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.