inabahare / lewd2

A based file uploader
https://lewd.se
GNU General Public License v3.0
23 stars 3 forks source link

Typo "deleteionURL" #87

Closed kattjevfel closed 4 years ago

kattjevfel commented 4 years ago

In the dev branch:

packages/frontend/src/js/index.js
62:    const deleteionURL  = response.data.deleteionURL;
66:                                  <a href="${deleteionURL}">Delete</a>`;

packages/main-site/src/Classes/HandleUpload.js
72:                "deleteionURL": siteLink + "delete/" + this.file.deletionKey

packages/main-site/src/Controllers/upload/index.js
60:    {"status":200,"data":{"link":"http://localhost:3000/uploads/87597688bd3a_test.file","deleteionURL":"http://localhost:3000/delete/b7ac5310-1ea2-11e9-b272-776b6b0959a3"}}
67:    {"status":200,"data":{"link":"http://localhost:3000/uploads/6fc71542c0c9_test.file","deleteionURL":"http://localhost:3000/delete/fa805380-1ea2-11e9-beeb-5d080af2f40c"}}

There is also one spot where it is spelt correctly, funny enough:

packages/main-site/views/index.hbs
75:                <a href="{{ message.uploadData.data.deletionURL }}">Delete</a>

Noticed this when updating the lewd.sh uploader script to also include the deletion url

CaterpyOwO commented 4 years ago

lul