From dfcbac0c31159116ad3c57ebf479d59e431e5ce9 Mon Sep 17 00:00:00 2001 From: Pitu Date: Tue, 7 Feb 2017 05:14:01 -0300 Subject: [PATCH] Version v2.2.0 bump --- README.md | 27 ++++++++++++++++++++++++++- package.json | 2 +- 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5dcf042..808f39d 100644 --- a/README.md +++ b/README.md @@ -4,11 +4,36 @@ A small safe worth protecting. --- ### Sites using loli-safe -- [i.kanacchi.moe](https://i.kanacchi.moe): A small safe with a smile worth protecting. +- [lolisafe.moe](https://lolisafe.moe): A small safe worth protecting. - [cuntflaps.me](https://cuntflaps.me) - [fluntcaps.me](https://fluntcaps.me) - Feel free to add yours here. +--- +### What's new in v2.2.0 + +- Creation of public link for sharing a gallery +- Ability to add your own html files without making git dirty (Check [this commit](https://github.com/WeebDev/loli-safe/commit/18c66d27fb580ed0f847f11525d2d2dca0fda2f4)) +- Thumbnail creation for .webm and .mp4 (Thanks to [PascalTemel](https://github.com/PascalTemel)) +- Changed how duplicate files work (Check [this issue for more info](https://github.com/WeebDev/loli-safe/issues/8)) + +If you're upgrading from a previous version, create a `migrate.js` file on the root folder with the following code and run it only once: + +```js +const config = require('./config.js') +const db = require('knex')(config.database) +const randomstring = require('randomstring') + +db.schema.table('albums', function (table) { + table.string('identifier') +}).then(() => { + db.table('albums').then((albums) => { + for(let album of albums) + db.table('albums').where('id', album.id).update('identifier', randomstring.generate(8)).then(() => {}) + }) +}) +``` + --- 1. Clone diff --git a/package.json b/package.json index 330af64..73cb98d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "loli-safe", - "version": "2.1.0", + "version": "2.2.0", "description": "Pomf-like uploading service, written in node", "author": "kanadeko", "repository": {