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){