@@ -46,7 +46,7 @@ defmodule GroupherServer.CMS.Delegate.ArticleComment do
4646 def list_article_comments ( thread , article_id , filters , mode , user \\ nil )
4747
4848 def list_article_comments ( thread , article_id , filters , :timeline , user ) do
49- where_query = dynamic ( [ c ] , not c . is_folded and not c . is_reported and not c . is_pined )
49+ where_query = dynamic ( [ c ] , not c . is_folded and not c . is_reported and not c . is_pinned )
5050 do_list_article_comment ( thread , article_id , filters , where_query , user )
5151 end
5252
@@ -57,19 +57,19 @@ defmodule GroupherServer.CMS.Delegate.ArticleComment do
5757 where_query =
5858 dynamic (
5959 [ c ] ,
60- is_nil ( c . reply_to_id ) and not c . is_folded and not c . is_reported and not c . is_pined
60+ is_nil ( c . reply_to_id ) and not c . is_folded and not c . is_reported and not c . is_pinned
6161 )
6262
6363 do_list_article_comment ( thread , article_id , filters , where_query , user )
6464 end
6565
6666 def list_folded_article_comments ( thread , article_id , filters ) do
67- where_query = dynamic ( [ c ] , c . is_folded and not c . is_reported and not c . is_pined )
67+ where_query = dynamic ( [ c ] , c . is_folded and not c . is_reported and not c . is_pinned )
6868 do_list_article_comment ( thread , article_id , filters , where_query , nil )
6969 end
7070
7171 def list_folded_article_comments ( thread , article_id , filters , user ) do
72- where_query = dynamic ( [ c ] , c . is_folded and not c . is_reported and not c . is_pined )
72+ where_query = dynamic ( [ c ] , c . is_folded and not c . is_reported and not c . is_pinned )
7373 do_list_article_comment ( thread , article_id , filters , where_query , user )
7474 end
7575
@@ -129,7 +129,7 @@ defmodule GroupherServer.CMS.Delegate.ArticleComment do
129129 end
130130 end )
131131 |> Multi . run ( :update_comment_flag , fn _ , _ ->
132- ORM . update ( comment , % { is_pined : true } )
132+ ORM . update ( comment , % { is_pinned : true } )
133133 end )
134134 |> Multi . run ( :add_pined_comment , fn _ , _ ->
135135 ArticlePinedComment
@@ -147,7 +147,7 @@ defmodule GroupherServer.CMS.Delegate.ArticleComment do
147147 with { :ok , comment } <- ORM . find ( ArticleComment , comment_id ) do
148148 Multi . new ( )
149149 |> Multi . run ( :update_comment_flag , fn _ , _ ->
150- ORM . update ( comment , % { is_pined : false } )
150+ ORM . update ( comment , % { is_pinned : false } )
151151 end )
152152 |> Multi . run ( :remove_pined_comment , fn _ , _ ->
153153 ORM . findby_delete ( ArticlePinedComment , % { article_comment_id: comment . id } )
0 commit comments