set imageurl prefix to use new nextcloud-commons capabilities

This commit is contained in:
Felix Nüsse 2022-03-21 15:03:08 +01:00 committed by Andy Scherzinger
parent bea3f9691c
commit 1c92b16740

View file

@ -126,6 +126,7 @@ public class NotePreviewFragment extends SearchableBaseNoteFragment implements O
super.onNoteLoaded(note);
noteLoaded = true;
registerInternalNoteLinkHandler();
binding.singleNoteContent.setMarkdownImageUrlPrefix(repo.getAccountById(note.getAccountId()).getUrl()+"/index.php/apps/notes/notes/"+note.getRemoteId()+"/attachment?path=");
changedText = note.getContent();
binding.singleNoteContent.setMarkdownString(note.getContent(), setScrollY);
binding.singleNoteContent.getMarkdownString().observe(requireActivity(), (newContent) -> {