Notification settings on flagged content useless

There is no way content flagged as subscribed ever worked with anything but the default oa_mail notify setting. Instead of user objects (which also contain the notification settings by the current user), you handed over flag objects. This caused later digest settings to always fall back to default.

Sorry about the "sync to upstream" commits. I barely know how to use github.