mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-21 00:20:50 +00:00
Fix "Dashboard shows deleted comments" (#1995)
This commit is contained in:
parent
735676267e
commit
441986a473
8 changed files with 78 additions and 4 deletions
|
@ -310,6 +310,7 @@ func TestGetFeeds(t *testing.T) {
|
|||
RequestingUserID: user.ID,
|
||||
IncludePrivate: true,
|
||||
OnlyPerformedBy: false,
|
||||
IncludeDeleted: true,
|
||||
})
|
||||
assert.NoError(t, err)
|
||||
assert.Len(t, actions, 1)
|
||||
|
@ -337,6 +338,7 @@ func TestGetFeeds2(t *testing.T) {
|
|||
RequestingUserID: userID,
|
||||
IncludePrivate: true,
|
||||
OnlyPerformedBy: false,
|
||||
IncludeDeleted: true,
|
||||
})
|
||||
assert.NoError(t, err)
|
||||
assert.Len(t, actions, 1)
|
||||
|
@ -348,6 +350,7 @@ func TestGetFeeds2(t *testing.T) {
|
|||
RequestingUserID: userID,
|
||||
IncludePrivate: false,
|
||||
OnlyPerformedBy: false,
|
||||
IncludeDeleted: true,
|
||||
})
|
||||
assert.NoError(t, err)
|
||||
assert.Len(t, actions, 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue