Skip to content

Commit

Permalink
fix reader compatible bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cdhigh committed Jun 16, 2024
1 parent e7bc5f4 commit 5790ede
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docker_build_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ jobs:
TAG_LATEST: latest
TAG_VERSION: ${{ steps.get_version.outputs.version }}
run: |
docker buildx build --push --platform=linux/amd64,linux/arm64 -t $IMAGE_NAME:$TAG_LATEST -t $IMAGE_NAME:$TAG_VERSION -f docker/Dockerfile .
docker buildx build --push --platform=linux/amd64,linux/arm64 -t $IMAGE_NAME:$TAG_VERSION -t $IMAGE_NAME:$TAG_LATEST -f docker/Dockerfile .
2 changes: 2 additions & 0 deletions application/view/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ def ReaderRoute():
oebBooks = json.dumps(oebBooks, ensure_ascii=False)
initArticle = url_for('bpReader.ReaderArticleNoFoundRoute', tips='')
params = user.cfg('reader_params')
if not params.get('allowLinks'):
params['allowLinks'] = 0
shareKey = user.share_links.get('key')
if (get_locale() or '').startswith('zh'):
helpPage = 'https://cdhigh.github.io/KindleEar/Chinese/reader.html'
Expand Down

0 comments on commit 5790ede

Please sign in to comment.