mirror of
https://github.com/wassname/talk.git
synced 2026-08-12 12:30:39 +08:00
Initial work for locking flag type and providing translations
This commit is contained in:
+33
-12
@@ -518,6 +518,36 @@ type FlagAssetActionSummary implements AssetActionSummary {
|
||||
actionableItemCount: Int
|
||||
}
|
||||
|
||||
enum FLAG_REASON {
|
||||
|
||||
# The current user thinks that the flagged username is offensive.
|
||||
USERNAME_OFFENSIVE
|
||||
|
||||
# The current user does not like the flagged username.
|
||||
USERNAME_NOLIKE
|
||||
|
||||
# The current user thinks that the flagged username is being used to
|
||||
# impersonate another user.
|
||||
USERNAME_IMPERSONATING
|
||||
|
||||
# The current user thinks that the flagged username is spam.
|
||||
USERNAME_SPAM
|
||||
|
||||
# The current user thinks that the flagged username is wrong for another
|
||||
# reason.
|
||||
USERNAME_OTHER
|
||||
|
||||
# The current user thinks that the flagged comment is offensive.
|
||||
COMMENT_OFFENSIVE
|
||||
|
||||
# The current user thinks that the flagged comment is spam.
|
||||
COMMENT_SPAM
|
||||
|
||||
# The current user thinks that the flagged comment is wrong for another
|
||||
# reason.
|
||||
COMMENT_OTHER
|
||||
}
|
||||
|
||||
# A FLAG action that contains flag metadata.
|
||||
type FlagAction implements Action {
|
||||
|
||||
@@ -525,7 +555,7 @@ type FlagAction implements Action {
|
||||
id: ID!
|
||||
|
||||
# The reason for which the Flag Action was created.
|
||||
reason: String
|
||||
reason: FLAG_REASON
|
||||
|
||||
# An optional message sent with the flagging action by the user.
|
||||
message: String
|
||||
@@ -546,9 +576,6 @@ type DontAgreeAction implements Action {
|
||||
# The ID of the DontAgree Action.
|
||||
id: ID!
|
||||
|
||||
# The reason for which the DontAgree Action was created.
|
||||
reason: String
|
||||
|
||||
# An optional message sent with the flagging action by the user.
|
||||
message: String
|
||||
|
||||
@@ -569,7 +596,7 @@ type FlagActionSummary implements ActionSummary {
|
||||
count: Int!
|
||||
|
||||
# The reason for which the Flag Action was created.
|
||||
reason: String
|
||||
reason: FLAG_REASON
|
||||
|
||||
# The flag by the current user against the parent entity with this reason.
|
||||
current_user: FlagAction
|
||||
@@ -581,9 +608,6 @@ type DontAgreeActionSummary implements ActionSummary {
|
||||
# The total count of flags with this reason.
|
||||
count: Int!
|
||||
|
||||
# The reason for which the Flag Action was created.
|
||||
reason: String
|
||||
|
||||
# The don't agree action by the current user against the parent entity with this reason.
|
||||
current_user: DontAgreeAction
|
||||
}
|
||||
@@ -948,7 +972,7 @@ input CreateFlagInput {
|
||||
item_type: ACTION_ITEM_TYPE!
|
||||
|
||||
# The reason for flagging the item.
|
||||
reason: String!
|
||||
reason: FLAG_REASON
|
||||
|
||||
# An optional message sent with the flagging action by the user.
|
||||
message: String
|
||||
@@ -987,9 +1011,6 @@ input CreateDontAgreeInput {
|
||||
# The type of the item for which we are to create the don't agree.
|
||||
item_type: ACTION_ITEM_TYPE!
|
||||
|
||||
# The reason for not agreeing with the item.
|
||||
reason: String
|
||||
|
||||
# An optional message sent with the don't agree action by the user.
|
||||
message: String
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user