From ad9121835988594eef194bcedbf25cfb8b4bb2f4 Mon Sep 17 00:00:00 2001 From: Max G Date: Mon, 10 Feb 2020 20:43:34 +0000 Subject: [PATCH] fixes #4 Hidden attachment images don't appear on note title display card * Fixed typo on home page --- client/src/pages/HomePage.vue | 2 +- server/models/Note.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/client/src/pages/HomePage.vue b/client/src/pages/HomePage.vue index 0bf7d89..430752b 100644 --- a/client/src/pages/HomePage.vue +++ b/client/src/pages/HomePage.vue @@ -105,7 +105,7 @@

Using an online note application

-

Assuming you have never used an note application previously in your life.

+

Assuming you have never used a note application previously in your life.


diff --git a/server/models/Note.js b/server/models/Note.js index 3f31e30..f33101f 100644 --- a/server/models/Note.js +++ b/server/models/Note.js @@ -453,7 +453,9 @@ Note.search = (userId, searchQuery, searchTags, fastFilters) => { LEFT JOIN tag ON (tag.id = note_tag.tag_id) LEFT JOIN attachment ON (note.id = attachment.note_id) LEFT JOIN user as shareUser ON (note.share_user_id = shareUser.id) - WHERE note.user_id = ?` + WHERE note.user_id = ? + AND attachment.visible = 1 + ` //Show shared notes if(fastFilters.onlyShowSharedNotes == 1){