1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-17 15:53:28 +00:00

[api2]Fix a bug for url of files renamed

This commit is contained in:
poetwang
2013-07-12 21:12:54 +08:00
committed by llj
parent 44e98deba6
commit 1d01c83fc3

View File

@@ -926,8 +926,10 @@ def api_convert_desc_link(e):
# match the diff_result # match the diff_result
continue continue
if d.status == 'add' or d.status == 'mod' or d.status == 'mov': if d.status == 'add' or d.status == 'mod':
e.link = "api://repo/%s/files/?p=/%s" % (repo_id, d.name) e.link = "api://repo/%s/files/?p=/%s" % (repo_id, d.name)
elif d.status == 'mov':
e.link = "api://repo/%s/files/?p=/%s" % (repo_id, d.new_name)
elif d.status == 'newdir': elif d.status == 'newdir':
e.link = "api://repo/%s/dir/?p=/%s" % (repo_id, d.name) e.link = "api://repo/%s/dir/?p=/%s" % (repo_id, d.name)
else: else: