Bumped version to 7.2; added avatars, fixed limited access

Added Rabbit and Mouse avatars. Fixed limited users being able to
move their posts to other subspaces.
This commit is contained in:
Jaakko Keränen 2023-11-14 08:10:30 +02:00
parent fad37b62a6
commit 4b132b3521
No known key found for this signature in database
GPG Key ID: BACCFCFB98DB2EDC
3 changed files with 5 additions and 1 deletions

View File

@ -18,7 +18,7 @@ from utils import *
from worker import *
__version__ = '7.1'
__version__ = '7.2'
class Bubble:

View File

@ -327,6 +327,8 @@ def make_composer_page(session):
if post_action == 'move':
if not db.verify_token(session.user, req_token):
return 61, "Not authorized"
if session.user.role == User.LIMITED:
return 61, "Not authorized"
if is_empty_query(req):
return 10, f'Move post {post.id} to which subspace?'

View File

@ -48,12 +48,14 @@ def make_settings_page(session):
'Animals',
('😺', 'cat face'),
('🐶', 'dog face'),
('🐰', 'rabbit face'),
('🐸', 'frog face'),
('🐵', 'monkey face'),
('🐷', 'pig face'),
('🐻', 'bear face'),
('🐝', 'bee'),
('🐦', 'bird'),
('🐁', 'mouse'),
('🦋', 'butterfly'),
('🦀', 'crab'),
('🐉', 'dragon'),