mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-19 10:03:40 +00:00
Go add statictic view
This commit is contained in:
@@ -421,13 +421,11 @@ func doFile(rsp http.ResponseWriter, r *http.Request, repo *repomgr.Repo, fileID
|
||||
}
|
||||
}
|
||||
|
||||
if operation != "view" {
|
||||
oper := "web-file-download"
|
||||
if operation == "download-link" {
|
||||
oper = "link-file-download"
|
||||
}
|
||||
sendStatisticMsg(repo.StoreID, user, oper, file.FileSize)
|
||||
oper := "web-file-download"
|
||||
if operation == "download-link" {
|
||||
oper = "link-file-download"
|
||||
}
|
||||
sendStatisticMsg(repo.StoreID, user, oper, file.FileSize)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user