Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug/anson/228 #229

Closed
wants to merge 2 commits into from
Closed

Bug/anson/228 #229

wants to merge 2 commits into from

Conversation

PohAnson
Copy link

@PohAnson PohAnson commented Sep 25, 2024

Fixes #201 and #228

Created a helper function getImageUrl that returns the url based on whether it is online or offline. Refactored all the image url to use this function.

Created new helper function `getImageUrl` to return the correct image uri based on whether it is offline or online.
Accounts for the possibility that the picture was previously saved on cloudinary when it goes offline. In that case retrieve from cloudinary.

If is online setup, it is assumed that the offline computer is not running, so the image cannot be retrieved either ways.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants