fixes #4 for real
* Deleting a link deletes the thumbnails * Joining thumbnails now ignores not visible
This commit is contained in:
1 parent
ad91218359
commit
623d094d7b
3 files changed
+14
-45
No files matched your search
@@ -451,10 +451,9 @@ Note.search = (userId, searchQuery, searchTags, fastFilters) => {
|
||||
JOIN note_raw_text ON (note_raw_text.id = note.note_raw_text_id)
|
||||
LEFT JOIN note_tag ON (note.id = note_tag.note_id)
|
||||
LEFT JOIN tag ON (tag.id = note_tag.tag_id)
|
||||
LEFT JOIN attachment ON (note.id = attachment.note_id)
|
||||
LEFT JOIN attachment ON (note.id = attachment.note_id AND attachment.visible = 1)
|
||||
LEFT JOIN user as shareUser ON (note.share_user_id = shareUser.id)
|
||||
WHERE note.user_id = ?
|
||||
AND attachment.visible = 1
|
||||
`
|
||||
|
||||
//Show shared notes
|
||||
|
||||
Reference in new issue
Block a user