Revert anon-view key change from #724

The "anon-view" translation key is the correct one to use for accessing
anonymous view within the search results. "config-anon-view" is only for
the configuration menu on the home page.
main
Ben Busby 2022-04-20 14:11:29 -06:00
parent 6d362ca5c7
commit 7688c1a233
No known key found for this signature in database
GPG Key ID: B9B7231E01D924A1
2 changed files with 1 additions and 2 deletions

View File

@ -464,7 +464,6 @@ def element():
try: try:
cipher_suite = Fernet(g.session_key) cipher_suite = Fernet(g.session_key)
src_url = cipher_suite.decrypt(element_url.encode()).decode() src_url = cipher_suite.decrypt(element_url.encode()).decode()
print(src_url)
except (InvalidSignature, InvalidToken) as e: except (InvalidSignature, InvalidToken) as e:
return render_template( return render_template(
'error.html', 'error.html',

View File

@ -210,7 +210,7 @@ def append_anon_view(result: BeautifulSoup, config: Config) -> None:
translation = current_app.config['TRANSLATIONS'][ translation = current_app.config['TRANSLATIONS'][
config.get_localization_lang() config.get_localization_lang()
] ]
av_link.string = f'{translation["config-anon-view"]}' av_link.string = f'{translation["anon-view"]}'
av_link['class'] = 'anon-view' av_link['class'] = 'anon-view'
result.append(av_link) result.append(av_link)