Notice: Your IP and email are both viewable in MySQL. Use caution when using clones that are hosted by untrusted users. -
Active clones
-this clone
-uhh uhh youre using it now and its good enough
-From 33fe45bc60e920b05f7c724bf2339f7f2cd858b3 Mon Sep 17 00:00:00 2001 From: some weird guy <120821766+Mistake35@users.noreply.github.com> Date: Fri, 1 Sep 2023 20:00:03 -0700 Subject: [PATCH] Some cleanup - Removed CLOSEDVERSE_PROD. - Removed duplicate settings in settings.py. - Removed static exclusion when forcing the user to log in. Nginx should handle this anyways... - Removed old unused HTML pages. - Changed the way time is shown on profiles and in my_data. - Additional HTML changes. --- closedverse/settings.py | 14 +--------- .../elements/user-sidebar.html | 4 +-- .../closedverse_main/help/Active_clones.html | 27 ------------------- .../closedverse_main/help/help_approval.html | 14 ---------- .../closedverse_main/help/my-data.html | 8 +++--- .../closedverse_main/man/manage_bans.html | 8 +++--- .../closedverse_main/man/manage_warnings.html | 10 +++---- closedverse_main/views.py | 15 ----------- 8 files changed, 16 insertions(+), 84 deletions(-) delete mode 100644 closedverse_main/templates/closedverse_main/help/Active_clones.html delete mode 100644 closedverse_main/templates/closedverse_main/help/help_approval.html diff --git a/closedverse/settings.py b/closedverse/settings.py index 6a254a0..40571d4 100644 --- a/closedverse/settings.py +++ b/closedverse/settings.py @@ -36,8 +36,6 @@ DEFAULT_AUTO_FIELD = 'django.db.models.AutoField' STATIC_URL = '/s/' MEDIA_URL = '/i/' -CLOSEDVERSE_PROD = True -IMAGE_DELETE_SETTING = 2 # Application definition @@ -231,7 +229,6 @@ LOGIN_EXEMPT_URLS = { r'^help/rules$', r'^help/contact$', r'^help/login$', - r'^s/.*$', } # Action to perform on images belonging to posts/ @@ -248,7 +245,7 @@ invite_only = False # Minimum level required to view IP addresses and user agents. (default: 10) # Mods under this level will still be able to manage users, however will not be able to view any sensitive data. # Set this to 0 to prevent anyone from viewing data. -min_lvl_metadata_perms = 0 +min_lvl_metadata_perms = 10 # if someone's level is equal or above this, they can edit the most communities on your clone. level_needed_to_man_communities = 5 @@ -265,10 +262,6 @@ DATA_UPLOAD_MAX_MEMORY_SIZE = 52428800 # TODO, make this work for users who aren't logged in. site_wide_theme_hex = 'ff4159' -# Option to delete image if it's local -# 0 - keep, 1 - move to 'rm' folder, 2 - DELETE -image_delete_opt = 0 - # age (minimal 13 due to C.O.P.P.A) age_allowed = "13" @@ -283,11 +276,6 @@ memo_msg = """
im bored
""" -# This option enables some production-specific pages -# and routines, such as HTTPS scheme redirection and -# proxy detection via IPHub. -CLOSEDVERSE_PROD = True - XFF_TRUSTED_PROXY_DEPTH = 1 XFF_STRICT = True XFF_NO_SPOOFING = True diff --git a/closedverse_main/templates/closedverse_main/elements/user-sidebar.html b/closedverse_main/templates/closedverse_main/elements/user-sidebar.html index 407d9f0..c484c0e 100644 --- a/closedverse_main/templates/closedverse_main/elements/user-sidebar.html +++ b/closedverse_main/templates/closedverse_main/elements/user-sidebar.html @@ -158,14 +158,14 @@Notice: Your IP and email are both viewable in MySQL. Use caution when using clones that are hosted by untrusted users. -
uhh uhh youre using it now and its good enough
-Placeholder
-Signup IP address: {% if user.signup_addr %}{{ user.signup_addr }}{% else %}Data missing{% endif %}
Rank: {% if user.staff %}You are a staff member.{% elif not user.level <= 0 %}You are a moderator. (Level {{ user.level }}){% else %}You are a regular user.{% endif %}
Your account has existed for {{ age }} days! During that time, we've collected: Your account has existed for {{ user.created|timesince }}! During that time, we've collected: Account login history: Each time you try and sign in to your account, we grab the IP and User agent from the device used. If you see any login attempts that you don't recognize as your own, you may want to change your password. Each time you sign in to your account, we grab the IP and User agent from the device used. If you see any login attempts that you don't recognize as your own, you may want to change your password.My content:
-
Collected data:
{% for log_attempt in log_attempt %}
Time
- Success
+
IP
User agent
diff --git a/closedverse_main/templates/closedverse_main/man/manage_bans.html b/closedverse_main/templates/closedverse_main/man/manage_bans.html
index b61f1d5..5a7a13f 100644
--- a/closedverse_main/templates/closedverse_main/man/manage_bans.html
+++ b/closedverse_main/templates/closedverse_main/man/manage_bans.html
@@ -6,11 +6,11 @@
{{ log_attempt.created }}
- {{ log_attempt.success }}
+
{% if log_attempt.success %}{{ log_attempt.addr }}{% else %}REDACTED{% endif %}
{{ log_attempt.user_agent }}