mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-18 00:00:00 +00:00
Fixed circular import bug
This commit is contained in:
@@ -8,7 +8,6 @@ from django.dispatch import receiver
|
||||
from seaserv import get_group_members
|
||||
|
||||
from shortcuts import get_first_object_or_none
|
||||
from base.templatetags.seahub_tags import at_pattern
|
||||
from notifications.models import UserNotification
|
||||
from profile.models import Profile
|
||||
|
||||
@@ -54,7 +53,8 @@ def msgreply_save_handler(sender, instance, **kwargs):
|
||||
reply_msg = instance.message
|
||||
group_msg = instance.reply_to
|
||||
to_user = ''
|
||||
|
||||
|
||||
from base.templatetags.seahub_tags import at_pattern
|
||||
m = re.match(at_pattern, reply_msg)
|
||||
if m:
|
||||
nickname_or_emailprefix = m.group()[1:]
|
||||
|
Reference in New Issue
Block a user