@@ -8,10 +8,12 @@ defmodule GroupherServer.CMS do
88 alias GroupherServer.CMS.Delegate
99
1010 alias Delegate . {
11+ AbuseReport ,
1112 ArticleCURD ,
1213 ArticleOperation ,
1314 ArticleReaction ,
1415 FavoritedContents ,
16+ ArticleComment ,
1517 CommentCURD ,
1618 CommunitySync ,
1719 CommentReaction ,
@@ -106,22 +108,44 @@ defmodule GroupherServer.CMS do
106108 defdelegate unset_community ( community , thread , content_id ) , to: ArticleOperation
107109
108110 # Comment CURD
111+ defdelegate list_article_comments ( thread , article_id , filters ) , to: ArticleComment
112+ defdelegate list_article_comments ( thread , article_id , filters , user ) , to: ArticleComment
113+ defdelegate list_folded_article_comments ( thread , article_id , filters ) , to: ArticleComment
114+ defdelegate list_folded_article_comments ( thread , article_id , filters , user ) , to: ArticleComment
115+ defdelegate list_reported_article_comments ( thread , article_id , filters ) , to: ArticleComment
116+
117+ defdelegate list_reported_article_comments ( thread , article_id , filters , user ) ,
118+ to: ArticleComment
119+
120+ defdelegate list_comment_replies ( comment_id , filters ) , to: ArticleComment
121+
109122 defdelegate list_comments ( thread , content_id , filters ) , to: CommentCURD
110123 defdelegate list_comments_participators ( thread , content_id , filters ) , to: CommentCURD
111124
125+ defdelegate create_article_comment ( thread , article_id , args , user ) , to: ArticleComment
126+ defdelegate upvote_article_comment ( comment_id , user ) , to: ArticleComment
127+ defdelegate delete_article_comment ( comment_id , user ) , to: ArticleComment
128+ defdelegate reply_article_comment ( comment_id , args , user ) , to: ArticleComment
129+
130+ defdelegate make_emotion ( comment_id , args , user ) , to: ArticleComment
131+ defdelegate fold_article_comment ( comment_id , user ) , to: ArticleComment
132+ defdelegate unfold_article_comment ( comment_id , user ) , to: ArticleComment
133+ defdelegate report_article_comment ( comment_id , user ) , to: ArticleComment
134+ defdelegate unreport_article_comment ( comment_id , user ) , to: ArticleComment
135+
112136 defdelegate create_comment ( thread , content_id , args , user ) , to: CommentCURD
113137 defdelegate update_comment ( thread , id , args , user ) , to: CommentCURD
114138 defdelegate delete_comment ( thread , content_id ) , to: CommentCURD
115139 defdelegate list_replies ( thread , comment , user ) , to: CommentCURD
116140 defdelegate reply_comment ( thread , comment , args , user ) , to: CommentCURD
117141
142+ # report
143+ defdelegate create_report ( type , content_id , args , user ) , to: AbuseReport
144+
118145 # Comment Reaction
119146 # >> like / undo like
120147 defdelegate like_comment ( thread , comment , user ) , to: CommentReaction
121148 defdelegate undo_like_comment ( thread , comment , user ) , to: CommentReaction
122- # >> dislike / undo dislike
123- defdelegate dislike_comment ( thread , comment , user ) , to: CommentReaction
124- defdelegate undo_dislike_comment ( thread , comment , user ) , to: CommentReaction
125149
126150 # Passport CURD
127151 defdelegate stamp_passport ( rules , user ) , to: PassportCURD
0 commit comments