chat - decrease reputation cutoff

This commit is contained in:
rimu 2024-02-19 16:21:49 +13:00
parent eaf53f87c2
commit d8271a504d
4 changed files with 4 additions and 1 deletions

View file

@ -58,7 +58,7 @@ def chat_home(conversation_id=None):
@login_required
def new_message(to):
recipient = User.query.get_or_404(to)
if current_user.created_recently() or current_user.reputation < 10 or current_user.banned or not current_user.verified:
if current_user.created_recently() or current_user.reputation <= -10 or current_user.banned or not current_user.verified:
return redirect(url_for('chat.denied'))
if recipient.has_blocked_user(current_user.id) or current_user.has_blocked_user(recipient.id):
return redirect(url_for('chat.blocked'))

View file

@ -3,6 +3,7 @@
{% else %}
{% extends "base.html" %}
{% endif %} %}
{% set active_child = 'chats' %}
{% block app_content %}
<div class="row">

View file

@ -4,6 +4,7 @@
{% extends "base.html" %}
{% endif %} %}
{% from 'bootstrap/form.html' import render_form %}
{% set active_child = 'chats' %}
{% block app_content %}
<div class="row">

View file

@ -3,6 +3,7 @@
{% else %}
{% extends "base.html" %}
{% endif %} %}
{% set active_child = 'chats' %}
{% block app_content %}
<div class="row">