Problem:

features_get_default('flag', $module_name);

returns different output for a given flag than is returned by

flag_get_flag($flag_name);

in cases where the flag's default definition is overridden by implementations of hook_flag_alter().

Expected behavior

The flag as returned by featues_get_default('flag', $module) and flag_get_flag() should be identical.

Background:

I'm working to troubleshoot a feature that appears to be incorrectly overridden. The Commons Follow project defines a commons_follow_node flag, and then implements hook_flag_alter() to change $flag->types
which changes dynamically depending on which modules are enabled.

However, the Commons_follow_node module's Flag component appears as overridden.

My expectation is that Features would show the same default definition for a flag as the Flag module would, meaning that it would take implementations of hook_flag_alter() into account as I believe it currently does for default View exports and hook_views_default_views().