diff options
| author | Pitu <[email protected]> | 2019-03-14 23:14:45 +0900 |
|---|---|---|
| committer | Pitu <[email protected]> | 2019-03-14 23:14:45 +0900 |
| commit | f06c8c9d336cbee561d9a80abc78568c28463e52 (patch) | |
| tree | 52be21ec0997b367127014f895c41568716f75a7 | |
| parent | Tags (diff) | |
| download | host.fuwn.me-f06c8c9d336cbee561d9a80abc78568c28463e52.tar.xz host.fuwn.me-f06c8c9d336cbee561d9a80abc78568c28463e52.zip | |
dunno what's wrong here yet
| -rw-r--r-- | TODO | 33 | ||||
| -rw-r--r-- | src/api/routes/albums/link/linkDELETE.js | 7 |
2 files changed, 17 insertions, 23 deletions
@@ -1,33 +1,20 @@ -- FAQ 404s - There's a vertical scrollbar on seemingly all pages even though there is no need for it -- "Upload files" button on the dashboard doesn't do anything - "Tags" button on dashboard 404s - Passwords that contain special characters don't seem to work (refer to previous dms) -- Users section on dashboard doesn't properly display the Enabled / Admin options (shows both as false for my admin account, the only one that exists) - * This is an issue with SQLite not supporting boolean fields, they get converted to 1 and 0 - -- Purge files button in Users section doesn't seem to do anything (files remain in uploads folder) -- Trying to access an album link seems to load endlessly if the album contains no images - -- Same as above happens even when the album link is disabled, (dis-)allow download makes no difference - * This is an issue with SQLite not supporting boolean fields, they get converted to 1 and 0 -- You can only disable but not delete album links, so if you make five you're stuck with those 5 forever -- There is no tab name (just shows the web address) and no favicon (blank), even though instance name was set to "lolisafe" in wizard -- "Classic mode for store/ is deprecated and will be removed in Nuxt 3." - Uploaded text file (via ShareX) does not show up in the dashboard's "Files" area - * Currently only pictures show up on the dashboard due to having thumbs + * Currently only pictures show up on the dashboard due to having thumbs -- Albums and Tags buttons when hovering over an image in the "Files" section do nothing - * Album is fixed - * Tags is not +- Tags button when hovering over an image in the "Files" section do nothing -- On the front page, the top left logo and text for lolisafe is very hard to read - * Not gonna bother with this, anyone can upload their own background and it's different on every screen resolution -- Can't find a button to delete an album -- Clicking on an album name leads to a 404 (e.g. https://i.robflop.me/dashboard/albums/1) -- When toggling album options, it says "Editing the link was successfull", the 2nd l should be removed - Album options don't always seem to work? Sometimes I need to toggle an option on and off again for it to take effect (both dis-/enabled and downloads) - * Might be related to SQLite not supporting boolean fields issue + * This is an issue with SQLite not supporting boolean fields, they get converted to 1 and 0 +- Users section on dashboard doesn't properly display the Enabled / Admin options (shows both as false for my admin account, the only one that exists) + * This is an issue with SQLite not supporting boolean fields, they get converted to 1 and 0 +- Same as above happens even when the album link is disabled, (dis-)allow download makes no difference + * This is an issue with SQLite not supporting boolean fields, they get converted to 1 and 0 + +Think about implementing this https://i.kana.dev/24rcxzop.png + - Invalidate a file after it has been downloaded/viewed. diff --git a/src/api/routes/albums/link/linkDELETE.js b/src/api/routes/albums/link/linkDELETE.js index d6d98c4..3ec4d9d 100644 --- a/src/api/routes/albums/link/linkDELETE.js +++ b/src/api/routes/albums/link/linkDELETE.js @@ -1,4 +1,5 @@ const Route = require('../../../structures/Route'); +const { dump } = require('dumper.js'); class linkDELETE extends Route { constructor() { @@ -6,6 +7,10 @@ class linkDELETE extends Route { } async run(req, res, db) { + console.log('------------------------------'); + console.log('YES HI'); + console.log('------------------------------'); + console.log('WHO NEEDS FANCY DEBUGGING TOOLS ANYWAYS'); const { identifier } = req.params; if (!identifier) return res.status(400).json({ message: 'Invalid identifier supplied' }); @@ -14,6 +19,8 @@ class linkDELETE extends Route { .where({ identifier }) .first(); + dump(link); + if (!link) return res.status(400).json({ message: 'Identifier doesn\'t exist' }); await db.table('links') |