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
|
@login_required
|
||||||
def new_message(to):
|
def new_message(to):
|
||||||
recipient = User.query.get_or_404(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'))
|
return redirect(url_for('chat.denied'))
|
||||||
if recipient.has_blocked_user(current_user.id) or current_user.has_blocked_user(recipient.id):
|
if recipient.has_blocked_user(current_user.id) or current_user.has_blocked_user(recipient.id):
|
||||||
return redirect(url_for('chat.blocked'))
|
return redirect(url_for('chat.blocked'))
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
{% else %}
|
{% else %}
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% endif %} %}
|
{% endif %} %}
|
||||||
|
{% set active_child = 'chats' %}
|
||||||
|
|
||||||
{% block app_content %}
|
{% block app_content %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% endif %} %}
|
{% endif %} %}
|
||||||
{% from 'bootstrap/form.html' import render_form %}
|
{% from 'bootstrap/form.html' import render_form %}
|
||||||
|
{% set active_child = 'chats' %}
|
||||||
|
|
||||||
{% block app_content %}
|
{% block app_content %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
{% else %}
|
{% else %}
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% endif %} %}
|
{% endif %} %}
|
||||||
|
{% set active_child = 'chats' %}
|
||||||
|
|
||||||
{% block app_content %}
|
{% block app_content %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
Loading…
Add table
Reference in a new issue