summaryrefslogtreecommitdiffstats
path: root/models/consistency.go
diff options
context:
space:
mode:
authorEthan Koenig <etk39@cornell.edu>2017-05-25 21:38:18 -0400
committerLunny Xiao <xiaolunwen@gmail.com>2017-05-26 09:38:18 +0800
commit0c332f0480e9aa72454641afe53aebb3b9ab6e57 (patch)
treea13b29de28b8f61b9017316d2b5433e2c5ebda96 /models/consistency.go
parent03912ce0142039022481ccf3798ab937e9cf4f0b (diff)
downloadgitea-0c332f0480e9aa72454641afe53aebb3b9ab6e57.tar.gz
gitea-0c332f0480e9aa72454641afe53aebb3b9ab6e57.zip
Fix activity feed (#1779)
* Fix activity feed Preserve actions after user/repo name change * Add missing comment * Fix migration, and remove fields completely * Tests
Diffstat (limited to 'models/consistency.go')
-rw-r--r--models/consistency.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/models/consistency.go b/models/consistency.go
index 77308e538e..0c279eaaf8 100644
--- a/models/consistency.go
+++ b/models/consistency.go
@@ -162,11 +162,5 @@ func (team *Team) checkForConsistency(t *testing.T) {
func (action *Action) checkForConsistency(t *testing.T) {
repo := AssertExistsAndLoadBean(t, &Repository{ID: action.RepoID}).(*Repository)
- owner := AssertExistsAndLoadBean(t, &User{ID: repo.OwnerID}).(*User)
- actor := AssertExistsAndLoadBean(t, &User{ID: action.ActUserID}).(*User)
-
- assert.Equal(t, repo.Name, action.RepoName, "action: %+v", action)
assert.Equal(t, repo.IsPrivate, action.IsPrivate, "action: %+v", action)
- assert.Equal(t, owner.Name, action.RepoUserName, "action: %+v", action)
- assert.Equal(t, actor.Name, action.ActUserName, "action: %+v", action)
}