summaryrefslogtreecommitdiff
path: root/lib/models (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-05-25Use cascaded deletesSheogorath3-4/+12
When we delete a user we should delete all the notes that belong to this user including the revisions of these notes. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-05-25Use hard delete instead of soft deleteSheogorath1-1/+1
Right now we only flag notes as deleted. This is no longer allowed under GDPR. Make sure you do regular backups! Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-04-17Move letter-avatars into own requestSheogorath1-5/+5
To prevent further weakening of our CSP policies, moving the Avatars into a non-inline version is the way to go. This implementation probably needs some beautification. But already fixes the bug. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-04-10Add check for noteId lengthSheogorath1-0/+9
As we know the length of an UUID we can check if the base64 string of the provided UUID is long enough for a legacy base64 encoded nodeId and stop processing it in legacy mode, if it's not the case. This should make the ugly warning way less common. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-03-25Change config to camel case with backwards compatibilitySheogorath2-8/+8
This refactors the configs a bit to now use camel case everywhere. This change should help to clean up the config interface and make it better understandable. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-03-11Fix to log instead of throwing error on parse note idMax Wu1-2/+4
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2018-03-10Fix parseNoteId order to fix some edge caseMax Wu1-7/+7
that LZString note url could be parsed by base64url note url and thus return wrong note id Signed-off-by: Max Wu <jackymaxj@gmail.com>
2018-02-27Update to use buffer in encode/decode note idMax Wu1-2/+4
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2018-02-26Remove and replace all note id compression in LZString with base64urlMax Wu1-0/+27
Signed-off-by: Max Wu <jackymaxj@gmail.com>
2018-02-09Fix field type to prevent data truncation of authorship (#721)Max Wu2-2/+2
* Fix field type to prevent data truncation of authorship
2018-01-18Ignore empty values for revision.Sheogorath1-2/+2
Fixes #420
2017-11-28Initial support for SAML authenticationNorihito Nakae1-0/+9
2017-10-31Add mattermost authenticationChristoph Witzany1-0/+9
2017-10-16Fix #521 by converting content fields to LONGTEXT in MySQL, to prevent ↵Claudius Coenen2-4/+4
truncation of data.
2017-10-09createdAt DESC with quotation marks did not work with MySQL fixes #565Claudius Coenen1-4/+4
2017-09-22Fix broken profile imagesSheogorath1-2/+6
2017-06-05Fix typo in the db configWu Cheng-Han1-1/+1
2017-05-08refactor(config.js): Extract config fileBoHong Li1-2/+3
* Separate different config source to each files * Freeze config object
2017-05-08refactor: Remove `require` extension filenameBoHong Li4-9/+9
2017-03-15Fix strip null byte in model should cast to string to use replace functionWu Cheng-Han1-0/+1
2017-03-14Fix update doc from filesystem cause redundant authorship stringifyWu Cheng-Han1-1/+1
2017-03-14Use strict mode in all backend filesBoHong Li6-0/+6
add ‘use strict’ in all backend file
2017-03-08Use JavaScript Standard StyleBoHong Li6-1033/+1010
Introduce JavaScript Standard Style as project style rule, and fixed all fail on backend code.
2017-02-18Fix user profile photo might not replace to proper sizeWu Cheng-Han1-4/+4
2017-02-10Add default permission configNV1-2/+2
2017-02-03Update to add biggerphoto on parsing user profileWu Cheng-Han1-10/+26
2017-01-12Fix permission order and keep wording consistencyWu Cheng-Han1-1/+1
2017-01-10Adjust permission order to more clarly蒼時弦也1-1/+1
2017-01-10Add limited and protected permission蒼時弦也1-3/+3
2017-01-06Profile pictures for LDAP usersalecdwm1-0/+11
2017-01-04Fix and refactor extracting content using metaMarked directly might lead in ↵Wu Cheng-Han1-23/+20
invalid object
2017-01-02Refactor data processing to model definitionWu Cheng-Han3-0/+27
2017-01-02Update to remove null byte before saving to DB and remove null byte on changesWu Cheng-Han3-7/+35
2017-01-02Remove LZString compression for data storageWu Cheng-Han2-17/+11
2016-12-22Use dburl to configuratebananaappletw1-2/+2
2016-12-22Simplify code for herokubananaappletw1-1/+2
2016-12-22Fix #293bananaappletw1-3/+4
2016-12-12Update sequelize init conditionYukai Huang1-5/+4
2016-12-12Simplify output with sequelize database argumentYukai Huang1-2/+8
2016-12-02Update to support optional email register and signinWu Cheng-Han1-0/+33
2016-11-26Update to auto generate meta description based on content in publish note ↵Wu Cheng-Han1-0/+3
and slide
2016-11-18Add dmp worker to leverage CPU intensive calculation to child processWu Cheng-Han1-102/+79
2016-10-15Change revision saving policy periodWu Cheng-Han1-2/+2
2016-10-12Fix note extract tags might get encoded HTML entityWu Cheng-Han1-1/+1
2016-10-11Fix doc updating revision not stringify and compress authorship before saveWu Cheng-Han1-1/+1
2016-10-10Update to support delete noteWu Cheng-Han1-0/+1
2016-10-10Update to make note history count in server-side when user loggedWu Cheng-Han1-2/+55
2016-10-10Workaround cheerio text method shouldn't preserve html tags on fetching note ↵Wu Cheng-Han1-1/+2
title
2016-10-10Update to move authorship calculation code to note model and support update ↵Wu Cheng-Han1-1/+176
authorship after making revision of docs
2016-09-18Update to add revision saving policyWu Cheng-Han1-3/+23