mirror of https://gitlab.com/bashrc2/epicyon
Add address to location
parent
bf046b4d3e
commit
d0bdd7a55c
6
posts.py
6
posts.py
|
@ -1398,6 +1398,9 @@ def _create_post_s2s(base_dir: str, nickname: str, domain: str, port: int,
|
||||||
'type': 'Place',
|
'type': 'Place',
|
||||||
'name': location['name']
|
'name': location['name']
|
||||||
}
|
}
|
||||||
|
if location.get('address'):
|
||||||
|
if isinstance(location['address'], str):
|
||||||
|
new_post['object']['location']['address'] = location['address']
|
||||||
if location.get('url'):
|
if location.get('url'):
|
||||||
if isinstance(location['url'], str):
|
if isinstance(location['url'], str):
|
||||||
if resembles_url(location['url']):
|
if resembles_url(location['url']):
|
||||||
|
@ -1533,6 +1536,9 @@ def _create_post_c2s(base_dir: str, nickname: str, domain: str, port: int,
|
||||||
'type': 'Place',
|
'type': 'Place',
|
||||||
'name': location['name']
|
'name': location['name']
|
||||||
}
|
}
|
||||||
|
if location.get('address'):
|
||||||
|
if isinstance(location['address'], str):
|
||||||
|
new_post['object']['location']['address'] = location['address']
|
||||||
if location.get('url'):
|
if location.get('url'):
|
||||||
if isinstance(location['url'], str):
|
if isinstance(location['url'], str):
|
||||||
if resembles_url(location['url']):
|
if resembles_url(location['url']):
|
||||||
|
|
Loading…
Reference in New Issue