flag-drupal8
flag-drupal8 copied to clipboard
Views integration required for user flag
We created a flag called follow for users to be able to follow other users. And we wanted to create a view where a user can see all the content posted by all users followed by the logged in user.
We created relationships Flags and (Flags) Flag user and contextual filter (Flag user) User: User ID, but the views query looks like it is creating a join on node.nid = flagging.entity_id
I'm not sure I understand what the view is supposed to be doing yet. Is it supposed to be showing followed users or the content of followed users?
It is supposed to show the content of followed users.
The Flag user relationship should bringing in the user table joined on flagging.uid.
node.nid = flagging.entity_id
But that's normal too. That's from your relationship from nodes to flaggings.