Skip to content

Commit 2dc020c

Browse files
committed
Add recycle bin support for comments with utility and tests
1 parent 7baf3a8 commit 2dc020c

4 files changed

Lines changed: 793 additions & 1 deletion

File tree

src/plone/app/discussion/browser/moderation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,4 +433,4 @@ def get_comment_and_all_replies(comment, conversation):
433433
# Recursively get this reply and its replies
434434
result.extend(get_comment_and_all_replies(reply, conversation))
435435

436-
return result
436+
return result

src/plone/app/discussion/configure.zcml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,4 +183,10 @@
183183
handler=".events.auto_approve_comments"
184184
/>
185185

186+
<!-- Comment RecycleBin Support Utility -->
187+
<utility
188+
factory=".recyclebin.CommentRecycleBinSupport"
189+
provides=".recyclebin.ICommentRecycleBinSupport"
190+
/>
191+
186192
</configure>

0 commit comments

Comments
 (0)