diff --git a/files/routes/chats.py b/files/routes/chats.py index ff8d0cf0d..d76df6d0b 100644 --- a/files/routes/chats.py +++ b/files/routes/chats.py @@ -142,9 +142,6 @@ def leave_chat(v, chat_id): if not chat: abort(404, "Chat not found!") - if v.id == chat.owner_id: - abort(403, "The chat owner can't leave it!") - membership = g.db.query(ChatMembership).filter_by(user_id=v.id, chat_id=chat_id).one_or_none() if not membership: abort(400, "You're not a member of this chat!") diff --git a/files/templates/chat.html b/files/templates/chat.html index 8e8d2cdf3..6957b2fc9 100644 --- a/files/templates/chat.html +++ b/files/templates/chat.html @@ -27,9 +27,9 @@ - {% else %} - {% endif %} + + {% endif %}
diff --git a/files/templates/orgy.html b/files/templates/orgy.html index 5ed2360ed..585166b88 100644 --- a/files/templates/orgy.html +++ b/files/templates/orgy.html @@ -16,10 +16,10 @@ {% if v.id == chat.owner_id %} - {% else %} - {% endif %} + +

{% if orgy.type == 'youtube' %}