0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-06-30 16:38:21 +02:00

Make content of tag an empty object rather than null

This commit is contained in:
Erik Johnston 2018-08-24 14:44:16 +01:00
parent 84b4e76fed
commit 14d49c51db
2 changed files with 2 additions and 2 deletions

View file

@ -153,7 +153,7 @@ class ResourceLimitsServerNotices(object):
need_to_set_tag = False
if need_to_set_tag:
yield self._store.add_tag_to_room(
user_id, room_id, SERVER_NOTICE_ROOM_TAG, None
user_id, room_id, SERVER_NOTICE_ROOM_TAG, {}
)
@defer.inlineCallbacks

View file

@ -154,7 +154,7 @@ class ServerNoticesManager(object):
)
room_id = info['room_id']
yield self._store.add_tag_to_room(
user_id, room_id, SERVER_NOTICE_ROOM_TAG, None
user_id, room_id, SERVER_NOTICE_ROOM_TAG, {},
)
logger.info("Created server notices room %s for %s", room_id, user_id)