projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68b6fd2
)
Do not display deleted comments in RSS feed
author
Chocobozzz
<me@florianbigard.com>
Tue, 21 Apr 2020 07:27:42 +0000
(09:27 +0200)
committer
Chocobozzz
<me@florianbigard.com>
Tue, 21 Apr 2020 07:27:42 +0000
(09:27 +0200)
server/models/video/video-comment.ts
patch
|
blob
|
history
diff --git
a/server/models/video/video-comment.ts
b/server/models/video/video-comment.ts
index aedd7a3a95c9ebd506388e00790f9924eff8aec4..7cdff8c2cbefb6ba6d162d4b89cf83d6c1be8e31 100644
(file)
--- a/
server/models/video/video-comment.ts
+++ b/
server/models/video/video-comment.ts
@@
-386,7
+386,9
@@
export class VideoCommentModel extends Model<VideoCommentModel> {
order: [ [ 'createdAt', 'DESC' ] ] as Order,
offset: start,
limit: count,
- where: {},
+ where: {
+ deletedAt: null
+ },
include: [
{
attributes: [ 'name', 'uuid' ],