[ticket/12052] Use different visibility when post was edited

... and needs to be reapproved.

PHPBB3-12052
[ticket/11772] Do not send out new topic/post notifications when reapproving

Only add notifications, if we are not reapproving post
When the topic was already approved, but was edited and
now needs re-approval, we don't want to notify the users again.

PHPBB3-11772
[ticket/12371] Fix SQL query

PHPBB3-12371
[ticket/12371] We do not group quote notifications anymore

PHPBB3-12371