FIX: Use Discourse.system_user when we need a placeholder admin (PR #9781)

No clue why a fake User object was created with id = -1 when system_user is right there. This fixes some exceptions.

GitHub

@SamSaffron, blame says you’re the last to change this - can you recheck the security implications of this?

sure this seems like a very safe change to me

Code predates Discourse.system_user :slight_smile:

Well, that would do it!