Fix: Mod usernotes leaked to the public.

This commit is contained in:
Ben Rog-Wilhelm 2022-11-11 15:07:40 -06:00 committed by Ben Rog-Wilhelm
parent 2c0124d4a1
commit 583f4131dc

View file

@ -538,7 +538,6 @@ class User(Base):
'post_count': 0 if self.shadowbanned and not (v and (v.shadowbanned or v.admin_level > 1)) else self.post_count,
'comment_count': 0 if self.shadowbanned and not (v and (v.shadowbanned or v.admin_level > 1)) else self.comment_count,
'badges': [x.path for x in self.badges],
'notes': [x.json() for x in self.notes]
}
return data