f3031cd480
Updated for NyaaV3
2025-03-02 15:08:58 +02:00
Nicolas F
16814d6eb7
Add trusted application functionality ( #533 )
...
* Add trusted application functionality
This lets users apply for trusted status, given certain minimum
requirements. Moderators can then review the applications, giving
a recommendation, and administrators can accept or reject them.
If an application is accepted or rejected, the user receives an
e-mail about it.
Markdown images are not rendered in applications to prevent browsers
from sending automatic requests to untrusted webservers.
Users who have had their application rejected cannot re-apply for a set
amount of days.
* minor fixes
2019-08-10 18:18:44 -07:00
nyaadev
658eefe42a
fix uncommon exception in report system
...
fix html style issue in admin box on user page
2018-02-06 23:05:37 +01:00
A nyaa developer
f8a314df4f
Better bans ( #341 )
...
* better bans
* put jinja2 template into correct file
2017-08-25 18:53:35 -04:00
Kfir Hadas
a758f5f078
Optimize routes (define url_prefix in Blueprints)
...
* /admin/*
* /api/*
2017-08-15 17:12:54 +03:00
mreweilk
2e50f14fb7
Change admin routes from /adminlog and /reports to /admin/log and /admin/reports
2017-08-14 13:30:17 -04:00
Kfir Hadas
0181d6cb33
Prepare for app factory [1 of 2] ( #315 )
...
* Move db, assets, debug toolbar and fix_paginate into nyaa.extensions
* Change all `from nyaa import db` imports to `from nyaa.extensions import db`
* Move `nyaa.torrents.create_magnet_from_es_info` context processor into template-utils blueprint
* Fix tools (wrap in `with app.app_context():` where needed)
2017-07-30 20:35:16 +03:00
Kfir Hadas
9acdd14e81
Move /view/<int:torrent_id> route into 'torrents' blueprint
...
and update templates.
2017-07-27 14:14:00 +03:00
Kfir Hadas
0887dde6fc
Move /user/<user_name> route into a blueprint
...
Move supporting functions and variables into other files
* nyaa.utils:
- cached_function
- chain_get
* nyaa.search:
- DEFAULT_MAX_SEARCH_RESULT
- DEFAULT_PER_PAGE
- SERACH_PAGINATE_DISPLAY_MSG
- _generate_query_string
2017-07-27 14:14:00 +03:00
Kfir Hadas
3913d8cea2
Move admin routes into blueprint
...
and update templates
Routes:
* /reports
* /adminlog
2017-07-27 14:14:00 +03:00