From 7ae37d1d40f9b8fd7ad2b0baa6c6b3eac8aa335b Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Wed, 16 Dec 2020 12:29:29 +0100 Subject: [PATCH] When sharing a note share its metadata as well Fixes https://github.com/GitJournal/GitJournal/issues/360 I'm not sure if this is ideal as now the metadata such as 'modified' and 'created' will also be shared. On the other hand, the metadata often has valuable information which is otherwise getting lost. --- lib/utils.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils.dart b/lib/utils.dart index 40d5bd17..509a522c 100644 --- a/lib/utils.dart +++ b/lib/utils.dart @@ -90,7 +90,7 @@ String toCurlCommand(String url, Map headers) { } Future shareNote(Note note) async { - return Share.share(note.body); + return Share.share(note.serialize()); } Future getTodayJournalEntry(NotesFolderFS rootFolder) async {