mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-28 23:57:10 -04:00
Go back to storing JSON in TEXT
This commit is contained in:
parent
bc9e69e160
commit
b8092fbc82
11 changed files with 20 additions and 41 deletions
|
@ -35,16 +35,13 @@ class ProfileStore(SQLBaseStore):
|
|||
desc="get_profile_displayname",
|
||||
)
|
||||
|
||||
if name:
|
||||
name = self.database_engine.load_unicode(name)
|
||||
|
||||
defer.returnValue(name)
|
||||
|
||||
def set_profile_displayname(self, user_localpart, new_displayname):
|
||||
return self._simple_update_one(
|
||||
table="profiles",
|
||||
keyvalues={"user_id": user_localpart},
|
||||
updatevalues={"displayname": new_displayname.encode("utf8")},
|
||||
updatevalues={"displayname": new_displayname},
|
||||
desc="set_profile_displayname",
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue