mirror of
https://mau.dev/maunium/synapse.git
synced 2024-08-22 02:05:24 +00:00
Use a sensible default value for labels
This commit is contained in:
parent
a46574281d
commit
07cb38e965
@ -540,7 +540,7 @@ class EventsBackgroundUpdatesStore(BackgroundUpdateStore):
|
||||
"event_id": event_id,
|
||||
"label": label,
|
||||
}
|
||||
for label in event_json["content"].get(LabelsField)
|
||||
for label in event_json["content"].get(LabelsField, [])
|
||||
]
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user