@@ -51,7 +51,7 @@ defmodule GroupherServerWeb.Schema.Helper.Mutations do
51
51
upvote_[thread]
52
52
unto_emotion_[thread]
53
53
"""
54
- defmacro article_upvote_mutation ( thread ) do
54
+ defmacrop article_upvote_mutation ( thread ) do
55
55
quote do
56
56
@ desc unquote ( "upvote to#{ thread } " )
57
57
field unquote ( :"upvote_#{ thread } " ) , :article do
@@ -81,7 +81,7 @@ defmodule GroupherServerWeb.Schema.Helper.Mutations do
81
81
pin_[thread]
82
82
unto_pin_[thread]
83
83
"""
84
- defmacro article_pin_mutation ( thread ) do
84
+ defmacrop article_pin_mutation ( thread ) do
85
85
quote do
86
86
@ desc unquote ( "pin to#{ thread } " )
87
87
field unquote ( :"pin_#{ thread } " ) , unquote ( thread ) do
@@ -117,7 +117,7 @@ defmodule GroupherServerWeb.Schema.Helper.Mutations do
117
117
mark_delete_[thread]
118
118
unto_mark_delete_[thread]
119
119
"""
120
- defmacro article_mark_delete_mutation ( thread ) do
120
+ defmacrop article_mark_delete_mutation ( thread ) do
121
121
quote do
122
122
@ desc unquote ( "mark delete a#{ thread } type article, aka soft-delete" )
123
123
field unquote ( :"mark_delete_#{ thread } " ) , unquote ( thread ) do
@@ -152,7 +152,7 @@ defmodule GroupherServerWeb.Schema.Helper.Mutations do
152
152
mark_delete_[thread]
153
153
"""
154
154
# TODO: if post belongs to multi communities, unset instead delete
155
- defmacro article_delete_mutation ( thread ) do
155
+ defmacrop article_delete_mutation ( thread ) do
156
156
quote do
157
157
@ desc unquote ( "delete a#{ thread } , not delete" )
158
158
field unquote ( :"delete_#{ thread } " ) , unquote ( thread ) do
@@ -175,7 +175,7 @@ defmodule GroupherServerWeb.Schema.Helper.Mutations do
175
175
emotion_to_[thread]
176
176
unto_emotion_to_[thread]
177
177
"""
178
- defmacro article_emotion_mutation ( thread ) do
178
+ defmacrop article_emotion_mutation ( thread ) do
179
179
quote do
180
180
@ desc unquote ( "emotion to#{ thread } " )
181
181
field unquote ( :"emotion_to_#{ thread } " ) , unquote ( thread ) do
@@ -207,7 +207,7 @@ defmodule GroupherServerWeb.Schema.Helper.Mutations do
207
207
report_[thread]
208
208
undo_report_[thread]
209
209
"""
210
- defmacro article_report_mutation ( thread ) do
210
+ defmacrop article_report_mutation ( thread ) do
211
211
quote do
212
212
@ desc unquote ( "report a#{ thread } " )
213
213
field unquote ( :"report_#{ thread } " ) , unquote ( thread ) do
@@ -239,7 +239,7 @@ defmodule GroupherServerWeb.Schema.Helper.Mutations do
239
239
sink_[thread]
240
240
undo_sink_[thread]
241
241
"""
242
- defmacro article_sink_mutation ( thread ) do
242
+ defmacrop article_sink_mutation ( thread ) do
243
243
quote do
244
244
@ desc unquote ( "sink a#{ thread } " )
245
245
field unquote ( :"sink_#{ thread } " ) , :article do
@@ -275,7 +275,7 @@ defmodule GroupherServerWeb.Schema.Helper.Mutations do
275
275
lock_[thread]_comment
276
276
undo_lock_[thread]_comment
277
277
"""
278
- defmacro article_lock_comment_mutation ( thread ) do
278
+ defmacrop article_lock_comment_mutation ( thread ) do
279
279
quote do
280
280
@ desc unquote ( "lock comment of a#{ thread } " )
281
281
field unquote ( :"lock_#{ thread } _comment" ) , :article do