mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Make content of tag an empty object rather than null
This commit is contained in:
parent
84b4e76fed
commit
14d49c51db
@ -153,7 +153,7 @@ class ResourceLimitsServerNotices(object):
|
|||||||
need_to_set_tag = False
|
need_to_set_tag = False
|
||||||
if need_to_set_tag:
|
if need_to_set_tag:
|
||||||
yield self._store.add_tag_to_room(
|
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
|
@defer.inlineCallbacks
|
||||||
|
@ -154,7 +154,7 @@ class ServerNoticesManager(object):
|
|||||||
)
|
)
|
||||||
room_id = info['room_id']
|
room_id = info['room_id']
|
||||||
yield self._store.add_tag_to_room(
|
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)
|
logger.info("Created server notices room %s for %s", room_id, user_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user