Skip to content

Commit d43a11e

Browse files
newhintonAndyScherzinger
authored andcommitted
set imageurl prefix to use new nextcloud-commons capabilities
1 parent b0248e6 commit d43a11e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/src/main/java/it/niedermann/owncloud/notes/edit/NotePreviewFragment.java

+1
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ protected void onNoteLoaded(Note note) {
120120
super.onNoteLoaded(note);
121121
noteLoaded = true;
122122
registerInternalNoteLinkHandler();
123+
binding.singleNoteContent.setMarkdownImageUrlPrefix(repo.getAccountById(note.getAccountId()).getUrl()+"/index.php/apps/notes/notes/"+note.getRemoteId()+"/attachment?path=");
123124
changedText = note.getContent();
124125
binding.singleNoteContent.setMarkdownString(note.getContent(), setScrollY);
125126
binding.singleNoteContent.getMarkdownString().observe(requireActivity(), (newContent) -> {

0 commit comments

Comments
 (0)