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.
This commit is contained in:
Vishesh Handa
2020-12-16 12:29:29 +01:00
parent 2bd6e07c7b
commit 7ae37d1d40

View File

@ -90,7 +90,7 @@ String toCurlCommand(String url, Map<String, String> headers) {
}
Future<void> shareNote(Note note) async {
return Share.share(note.body);
return Share.share(note.serialize());
}
Future<Note> getTodayJournalEntry(NotesFolderFS rootFolder) async {