mirror of https://gitlab.com/bashrc2/epicyon
Physical locations have addresses
parent
e50d691e5a
commit
2418bfc349
4
posts.py
4
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:
|
if not latitude or not longitude:
|
||||||
locn_url2 = None
|
locn_url2 = None
|
||||||
|
|
||||||
if not locn_url2:
|
if not locn_url2 or location.get('address'):
|
||||||
new_post['object']['location'] = {
|
new_post['object']['location'] = {
|
||||||
'type': 'Place',
|
'type': 'Place',
|
||||||
'name': location['name']
|
'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:
|
if not latitude or not longitude:
|
||||||
locn_url2 = None
|
locn_url2 = None
|
||||||
|
|
||||||
if not locn_url2:
|
if not locn_url2 or location.get('address'):
|
||||||
new_post['location'] = {
|
new_post['location'] = {
|
||||||
'type': 'Place',
|
'type': 'Place',
|
||||||
'name': location['name']
|
'name': location['name']
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue