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:
@@ -926,8 +926,10 @@ def api_convert_desc_link(e):
|
||||
# match the diff_result
|
||||
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)
|
||||
elif d.status == 'mov':
|
||||
e.link = "api://repo/%s/files/?p=/%s" % (repo_id, d.new_name)
|
||||
elif d.status == 'newdir':
|
||||
e.link = "api://repo/%s/dir/?p=/%s" % (repo_id, d.name)
|
||||
else:
|
||||
|
Reference in New Issue
Block a user