Fix: Mod-only information leaked via the API. (#696)

This commit is contained in:
Ben Rog-Wilhelm 2023-09-04 23:09:54 -05:00 committed by GitHub
parent 41497958b6
commit 75edfe8b31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 15 deletions

View file

@ -519,7 +519,6 @@ class User(CreatedBase):
data = self.json_core
data["badges"] = [x.json for x in self.badges]
data['coins'] = self.coins
data['post_count'] = self.post_count
data['comment_count'] = self.comment_count