Did not receive "First Flag" badge

I just looked at the query, and it seems:

  • it doesn’t count the ‘message @username’ flags
  • it only counts flags on badge categories (public categories that aren’t no-badges)

If I remove either of those conditions (add PM user or switch to all posts), you get the badge.