From 1dbd94e9ed2f96df832cb3fc84d53870240a8cea Mon Sep 17 00:00:00 2001 From: Leo Date: Sat, 12 Oct 2019 10:06:41 +0800 Subject: [PATCH] fix virtual repo url in email notices (#4142) --- seahub/notifications/management/commands/send_notices.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seahub/notifications/management/commands/send_notices.py b/seahub/notifications/management/commands/send_notices.py index 577ad82713..ae9155dfbc 100644 --- a/seahub/notifications/management/commands/send_notices.py +++ b/seahub/notifications/management/commands/send_notices.py @@ -98,7 +98,7 @@ class Command(BaseCommand): owner = seafile_api.get_repo_owner(repo_id) repo = seafile_api.get_virtual_repo(repo_id, path, owner) - repo_url = reverse('lib_view', args=[repo_id, repo.name, '']) + repo_url = reverse('lib_view', args=[repo.id, repo.name, '']) notice.repo_url = repo_url notice.notice_from = escape(email2nickname(d['share_from'])) notice.repo_name = repo.name @@ -129,7 +129,7 @@ class Command(BaseCommand): owner = seafile_api.get_repo_owner(repo_id) repo = seafile_api.get_virtual_repo(repo_id, path, owner) - repo_url = reverse('lib_view', args=[repo_id, repo.name, '']) + repo_url = reverse('lib_view', args=[repo.id, repo.name, '']) notice.repo_url = repo_url notice.notice_from = escape(email2nickname(d['share_from'])) notice.repo_name = repo.name