Added external address for links

This commit is contained in:
Profitroll 2023-02-17 21:53:57 +01:00
parent 68c887999e
commit cf204577e4
1 changed files with 1 additions and 1 deletions

View File

@ -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, []