Compare commits

...

2 Commits

Author SHA1 Message Date
Alex Ling
ddbba5d596 Bump version to v0.12.2 2020-09-17 16:08:52 +00:00
Alex Ling
2a04f4531e Bound the page number in the reader route
fixes #104
2020-09-17 16:06:01 +00:00
4 changed files with 4 additions and 4 deletions

View File

@@ -51,7 +51,7 @@ The official docker images are available on [Dockerhub](https://hub.docker.com/r
### CLI
```
Mango - Manga Server and Web Reader. Version 0.12.1
Mango - Manga Server and Web Reader. Version 0.12.2
Usage:

View File

@@ -1,5 +1,5 @@
name: mango
version: 0.12.1
version: 0.12.2
authors:
- Alex Ling <hkalexling@gmail.com>

View File

@@ -7,7 +7,7 @@ require "option_parser"
require "clim"
require "./plugin/*"
MANGO_VERSION = "0.12.1"
MANGO_VERSION = "0.12.2"
# From http://www.network-science.de/ascii/
BANNER = %{

View File

@@ -12,7 +12,7 @@ class ReaderRouter < Router
next layout "reader-error" if entry.err_msg
# load progress
page = entry.load_progress username
page = [1, entry.load_progress username].max
# start from page 1 if the user has finished reading the entry
page = 1 if entry.finished? username