I need a mass unfollow but as there's no button for that, I am asking here.

https://www.drupal.org/project/issues/search/drupal?project_issue_follow...

related issues
#1093650: Provide VBO support for issue management

Comments

chx’s picture

Status: Active » Closed (won't fix)
chx’s picture

Title: Please delete all my follows from the core queue » Please delete all my D6 and D7 follows from the core queue
Issue summary: View changes
Status: Closed (won't fix) » Active
yesct’s picture

Issue summary: View changes
drumm’s picture

Assigned: Unassigned » drumm
drumm’s picture

This quick reversal of project_issue_flag_issue() looks like it is working for individual issues:

$account = user_load(9446);
$node = node_load(481000);
$flag_name = project_issue_get_follow_flag($node);

if (!empty($flag_name) && is_object($account) && $account->uid != 0) {
  $flag = flag_get_flag($flag_name);
  if ($flag->is_flagged($node->nid, $account->uid)) {
    $flag->flag('unflag', $node->nid, $account);
  }
}

I unfollowed a couple, and I think can get the rest tomorrow.

drumm’s picture

I don't think this is the same as #1093650: Provide VBO support for issue management. That's updating the issue itself, which as noted there, could be quite destructive. Following & unfollowing would be a lot safer to provide a UI for.

drumm’s picture

Status: Active » Fixed

Okay, done.

yesct’s picture

Status: Fixed » Closed (fixed)

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