mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-02 18:59:53 +00:00
Allow exif location to be overridden
This commit is contained in:
1 parent
9bf6f64351
commit
c0dd2d018b
1 file changed
+3
-2
@@ -91,7 +91,8 @@ def _location_address_from_dict(location: {}) -> str:
|
||||
|
||||
|
||||
def _get_location_from_tags(tags: []) -> str:
|
||||
"""Returns the location from the tags list
|
||||
"""Returns the location string which is typically a link
|
||||
from the tags list
|
||||
"""
|
||||
locn = get_location_dict_from_tags(tags)
|
||||
if locn:
|
||||
@@ -277,7 +278,7 @@ def get_location_from_post(post_json_object: {}) -> str:
|
||||
locn_address = \
|
||||
_location_address_from_dict(locn2['address'])
|
||||
|
||||
if not locn_exists:
|
||||
if not locn and not locn_exists:
|
||||
# is the location contained within attachments as exif data?
|
||||
# see FEP-ee3a
|
||||
# https://codeberg.org/fediverse/fep/src/branch/main/
|
||||
|
||||
Reference in new issue
Block a user