mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
chat - decrease reputation cutoff
This commit is contained in:
parent
eaf53f87c2
commit
d8271a504d
4 changed files with 4 additions and 1 deletions
|
@ -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'))
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
{% else %}
|
||||
{% extends "base.html" %}
|
||||
{% endif %} %}
|
||||
{% set active_child = 'chats' %}
|
||||
|
||||
{% block app_content %}
|
||||
<div class="row">
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
{% else %}
|
||||
{% extends "base.html" %}
|
||||
{% endif %} %}
|
||||
{% set active_child = 'chats' %}
|
||||
|
||||
{% block app_content %}
|
||||
<div class="row">
|
||||
|
|
Loading…
Add table
Reference in a new issue