From 2418bfc349e1b2137fb141f3cf81ece7c4b68e30 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 13 Dec 2025 13:21:24 +0000 Subject: [PATCH] Physical locations have addresses --- posts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/posts.py b/posts.py index 47fd7fe24..1593cb952 100644 --- a/posts.py +++ b/posts.py @@ -1378,7 +1378,7 @@ def _create_post_s2s(base_dir: str, nickname: str, domain: str, port: int, if not latitude or not longitude: locn_url2 = None - if not locn_url2: + if not locn_url2 or location.get('address'): new_post['object']['location'] = { 'type': 'Place', 'name': location['name'] @@ -1535,7 +1535,7 @@ def _create_post_c2s(base_dir: str, nickname: str, domain: str, port: int, if not latitude or not longitude: locn_url2 = None - if not locn_url2: + if not locn_url2 or location.get('address'): new_post['location'] = { 'type': 'Place', 'name': location['name']