From cf204577e47f4c147f8d0ee26275c0e7ca7a7ee9 Mon Sep 17 00:00:00 2001 From: Profitroll <47523801+profitrollgame@users.noreply.github.com> Date: Fri, 17 Feb 2023 21:53:57 +0100 Subject: [PATCH] Added external address for links --- modules/api_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/api_client.py b/modules/api_client.py index 1e0e4c5..311acaf 100644 --- a/modules/api_client.py +++ b/modules/api_client.py @@ -64,7 +64,7 @@ async def upload_pic(filepath: str, token: Union[str, None] = None) -> Tuple[boo duplicates = [] if "duplicates" in response.json(): for duplicate in response.json()["duplicates"]: - duplicates.append(f'{configGet("address", "posting", "api")}/photos/{duplicate["id"]}') + duplicates.append(f'{configGet("address_external", "posting", "api")}/photos/{duplicate["id"]}') return True, duplicates except: return False, []