mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 09:27:43 +00:00
Remove now-unused do_finish_tutorial.
(imported from commit 6511d086376d1e81218cd31268f39e2145cb4d48)
This commit is contained in:
@@ -989,26 +989,6 @@ def do_update_message(user_profile, message_id, subject, content):
|
|||||||
notice = dict(event=event, users=recipients)
|
notice = dict(event=event, users=recipients)
|
||||||
tornado_callbacks.send_notification(notice)
|
tornado_callbacks.send_notification(notice)
|
||||||
|
|
||||||
def do_finish_tutorial(user_profile):
|
|
||||||
user_profile.tutorial_status = UserProfile.TUTORIAL_FINISHED
|
|
||||||
user_profile.save()
|
|
||||||
|
|
||||||
# We want to add the default subs list iff there were no subs
|
|
||||||
try:
|
|
||||||
prereg_user = PreregistrationUser.objects.filter(email=user_profile.email,
|
|
||||||
status=confirmation.settings.STATUS_ACTIVE) \
|
|
||||||
.order_by('-id')[0]
|
|
||||||
streams = prereg_user.streams.all()
|
|
||||||
except IndexError:
|
|
||||||
# If the user signed up via a mechanism other than
|
|
||||||
# PreregistrationUser (e.g. Google Apps connect or MitUser),
|
|
||||||
# just give them the default streams.
|
|
||||||
streams = []
|
|
||||||
|
|
||||||
if len(streams) == 0:
|
|
||||||
streams = get_default_subs(user_profile)
|
|
||||||
bulk_add_subscriptions(streams, [user_profile])
|
|
||||||
|
|
||||||
def gather_subscriptions(user_profile):
|
def gather_subscriptions(user_profile):
|
||||||
# For now, don't display subscriptions for private messages.
|
# For now, don't display subscriptions for private messages.
|
||||||
subs = Subscription.objects.select_related().filter(
|
subs = Subscription.objects.select_related().filter(
|
||||||
|
|||||||
Reference in New Issue
Block a user