fixes #4 Hidden attachment images don't appear on note title display card

* Fixed typo on home page
This commit is contained in:
Max G 2020-02-10 20:43:34 +00:00
parent 003c7e32b1
commit d2c1dedffb
2 changed files with 4 additions and 2 deletions

View File

@ -105,7 +105,7 @@
<h3 class="subtext">
Using an online note application <i class="i cursor icon blinking"></i>
</h3>
<p>Assuming you have never used an note application previously in your life.</p>
<p>Assuming you have never used a note application previously in your life.</p>
<br>
<i class="huge inverted chevron circle down icon"></i>
</div>

View File

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