1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-04 00:20:07 +00:00

polymerize create file events (#2888)

* polymerize create file events

* use multiFilesActivity object

* activities getmore

* polymerize by user and repo

* update algorithm

* modify judging condition
This commit is contained in:
王健辉
2019-02-13 11:19:40 +08:00
committed by Daniel Pan
parent f3531d553c
commit d4a3cf88fb
3 changed files with 153 additions and 16 deletions

View File

@@ -12,6 +12,8 @@ class Acticity {
this.avatar_url = json.avatar_url;
this.time = json.time;
this.op_type = json.op_type;
this.createdFilesCount = 0;
this.createdFilesList = [];
if (json.op_type === 'clean-up-trash') {
this.days = json.days;
} else if (json.op_type === 'rename' && json.obj_type === 'repo') {