add default bookmark collection on new user
This commit is contained in:
@@ -14,7 +14,7 @@ from ..auth import (
|
||||
login_required, revoke_session, get_active_user,
|
||||
parse_display_name, revoke_all_sessions, csrf_verified
|
||||
)
|
||||
from ..models import Users, Posts, Reactions, Threads, Avatars, PostHistory, Mentions
|
||||
from ..models import Users, Posts, Reactions, Threads, Avatars, PostHistory, Mentions, BookmarkCollections
|
||||
from ..constants import PermissionLevel, InfoboxKind
|
||||
from ..util import get_form_checkbox
|
||||
import math
|
||||
@@ -202,6 +202,8 @@ def sign_up_post():
|
||||
'created_at': int(time.time()),
|
||||
})
|
||||
|
||||
BookmarkCollections.create_default(user.id)
|
||||
|
||||
if username_pair[0] != username_pair[1]:
|
||||
user.update({
|
||||
'display_name': parse_display_name(username_pair[1])
|
||||
|
||||
Reference in New Issue
Block a user