Added rate limiting and server security
Ton of little visual style tweaks and little up improvements for mobile
This commit is contained in:
1 parent
749d2cea94
commit
ecbf6a9cde
17 files changed
+283
-148
No files matched your search
@@ -5,6 +5,10 @@ let Tag = module.exports = {}
|
||||
Tag.userTags = (userId, searchQuery, searchTags, fastFilters) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
|
||||
if(searchQuery && searchQuery.length > 0){
|
||||
return resolve([])
|
||||
}
|
||||
|
||||
let query = `
|
||||
SELECT
|
||||
tag.id,
|
||||
@@ -12,7 +16,7 @@ Tag.userTags = (userId, searchQuery, searchTags, fastFilters) => {
|
||||
COUNT(note_tag.note_id) as usages
|
||||
FROM tag
|
||||
JOIN note_tag ON tag.id = note_tag.tag_id
|
||||
JOIN note On note.id = note_tag.note_id
|
||||
JOIN note ON note.id = note_tag.note_id
|
||||
WHERE note_tag.user_id = ?
|
||||
`
|
||||
|
||||
|
||||
Reference in new issue
Block a user