~sircmpwn/meta.sr.ht

fa31c2d2385097fe05c8fec14bb7ae5227b3c94c — Adnan Maolood 2 months ago ae02f6f
metasrht/types/user: Add id to user dict

This is necessary for other services to be able to determine the user ID
of unknown users.
1 files changed, 1 insertions(+), 0 deletions(-)

M metasrht/types/user.py
M metasrht/types/user.py => metasrht/types/user.py +1 -0
@@ 60,6 60,7 @@ class User(Base, UserMixin):

    def to_dict(self, first_party=False, short=False):
        return {
            "id": self.id,
            "canonical_name": self.canonical_name,
            "name": self.username,
            **({