Skip to content

Commit 1c92b16

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

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
@@ -126,6 +126,7 @@ protected void onNoteLoaded(Note note) {
126126
super.onNoteLoaded(note);
127127
noteLoaded = true;
128128
registerInternalNoteLinkHandler();
129+
binding.singleNoteContent.setMarkdownImageUrlPrefix(repo.getAccountById(note.getAccountId()).getUrl()+"/index.php/apps/notes/notes/"+note.getRemoteId()+"/attachment?path=");
129130
changedText = note.getContent();
130131
binding.singleNoteContent.setMarkdownString(note.getContent(), setScrollY);
131132
binding.singleNoteContent.getMarkdownString().observe(requireActivity(), (newContent) -> {

0 commit comments

Comments
 (0)