Key federation imports on the new immutable event_uri field instead of the mutable event_url

This commit is contained in:
Michael Hall 2018-03-18 13:12:12 -04:00
parent 2f9d602973
commit 1788b96f54

View file

@ -18,7 +18,7 @@ class Command(BaseCommand):
for record in json_data:
record['federation_node'] = options['url']
record['federation_time'] = datetime.datetime.now()
Searchable.objects.update_or_create(defaults=record, event_url=record['event_url'])
Searchable.objects.update_or_create(defaults=record, event_uri=record['event_uri'])
else:
print("No URL in options!")