diff --git a/nyaa/backend.py b/nyaa/backend.py index b5853d0..b8b9926 100644 --- a/nyaa/backend.py +++ b/nyaa/backend.py @@ -72,7 +72,14 @@ def handle_torrent_upload(upload_form, uploading_user=None, fromAPI=False): torrent.complete = upload_form.is_complete.data # Copy trusted status from user if possible can_mark_trusted = uploading_user and uploading_user.is_trusted - torrent.trusted = upload_form.is_trusted.data if can_mark_trusted else False + # Automatically mark trusted if user is trusted unless user specifies it to not be trusted + if can_mark_trusted: + torrent.trusted = True + if upload_form.is_trusted.data is False: + torrent.trusted = False + else: + torrent.trusted = False + # Set category ids torrent.main_category_id, torrent.sub_category_id = \ upload_form.category.parsed_data.get_category_ids() diff --git a/nyaa/templates/home.html b/nyaa/templates/home.html index 8840da1..95d7f28 100644 --- a/nyaa/templates/home.html +++ b/nyaa/templates/home.html @@ -3,7 +3,7 @@ {% block body %}
-

5/18 Update: We've added an upload api for ease of uploading. See documentation here.

+

5/21 Update: We've updated our upload API to v2 (v1 still works). See documentation here.

5/17 Update: We've added faster and more accurate search! In addition to your typical keyword search in both English and other languages, you can also now use powerful operators like clockwork planet -horrible or commie|horrible|cartel yowamushi to search. For all supported operators, please click here. More features are coming soon!


We welcome you to provide feedback at #nyaa-dev@irc.rizon.net