set imageurl prefix to use new nextcloud-commons capabilities #1489
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This sets the url prefix in nextcloud-commons:markdown
It requires newhinton:feature/noid/imageurl, until a version with this pr is released, it is nessessary to add a local version of that branch to be used by the notes app.
This pr is tiny, and only supports images. The web-app does support arbitrary attachments, and provides a download for those. However, i think i broke mardown-conventions in doing so, so we may or may not want to support it here aswell. If we do want to support it, i have to change the library to make it work.
Also, when images cannot be loaded, we currently only show a broken image, shouldnt we also display the alt-text?
closes #1051
Oh, and i didnt check if servers that override index.php work, since the note object did not provide the "basepath", just the fqdn (or ip adress in my case)