<optiontype>boolean</optiontype>
<defaultvalue>1</defaultvalue>
</option>
+ <option name="user.page.canAddCommentWithoutModeration">
+ <categoryname>user.page</categoryname>
+ <optiontype>boolean</optiontype>
+ <defaultvalue>1</defaultvalue>
+ </option>
<option name="user.page.canEditComment">
<categoryname>user.page</categoryname>
<optiontype>boolean</optiontype>
<optiontype>boolean</optiontype>
<defaultvalue>1</defaultvalue>
</option>
+ <option name="user.page.canAddCommentWithoutModeration">
+ <categoryname>user.article</categoryname>
+ <optiontype>boolean</optiontype>
+ <defaultvalue>1</defaultvalue>
+ </option>
<option name="user.article.canEditComment">
<categoryname>user.article</categoryname>
<optiontype>boolean</optiontype>
<optiontype>boolean</optiontype>
<defaultvalue>1</defaultvalue>
</option>
+ <option name="user.page.canAddCommentWithoutModeration">
+ <categoryname>user.profileComment</categoryname>
+ <optiontype>boolean</optiontype>
+ <defaultvalue>1</defaultvalue>
+ </option>
<option name="user.profileComment.canEditComment">
<categoryname>user.profileComment</categoryname>
<optiontype>boolean</optiontype>
* @property-read integer $responses number of responses on the comment
* @property-read string $responseIDs serialized array with the ids of the five latest comment responses
* @property-read integer $enableHtml is 1 if HTML will rendered in the comment, otherwise 0
+ * @property-read integer $isDisabled is 1 if the comment is disabled, otherwise 0
*/
class Comment extends DatabaseObject implements IMessage {
use TUserContent;
* @property-read integer|null $userID id of the user who wrote the comment response or `null` if the user does not exist anymore or if the comment response has been written by a guest
* @property-read string $username name of the user or guest who wrote the comment response
* @property-read string $message comment response message
+ * @property-read integer $isDisabled is 1 if the comment response is disabled, otherwise 0
*/
class CommentResponse extends DatabaseObject implements IMessage {
use TUserContent;
<item name="wcf.acp.group.option.user.like.canLike"><![CDATA[Kann Inhalte liken]]></item>
<item name="wcf.acp.group.option.category.user.profileComment"><![CDATA[Benutzerprofil-Pinnwand]]></item>
<item name="wcf.acp.group.option.user.profileComment.canAddComment"><![CDATA[Kann Kommentare erstellen]]></item>
+ <item name="wcf.acp.group.option.user.profileComment.canAddCommentWithoutModeration"><![CDATA[Kann Kommentare ohne Moderation erstellen]]></item>
<item name="wcf.acp.group.option.user.profileComment.canEditComment"><![CDATA[Kann eigene Kommentare bearbeiten]]></item>
<item name="wcf.acp.group.option.user.profileComment.canDeleteComment"><![CDATA[Kann eigene Kommentare löschen]]></item>
<item name="wcf.acp.group.option.user.profileComment.canDeleteCommentInOwnProfile"><![CDATA[Kann Kommentare an der eigenen Pinnwand löschen]]></item>
<item name="wcf.acp.group.option.mod.page.canEditComment"><![CDATA[Kann Kommentare bearbeiten]]></item>
<item name="wcf.acp.group.option.mod.page.canModerateComment"><![CDATA[Kann Kommentare moderieren]]></item>
<item name="wcf.acp.group.option.user.article.canAddComment"><![CDATA[Kann Kommentare erstellen]]></item>
+ <item name="wcf.acp.group.option.user.article.canAddCommentWithoutModeration"><![CDATA[Kann Kommentare ohne Moderation erstellen]]></item>
<item name="wcf.acp.group.option.user.article.canDeleteComment"><![CDATA[Kann eigene Kommentare löschen]]></item>
<item name="wcf.acp.group.option.user.article.canEditComment"><![CDATA[Kann eigene Kommentare bearbeiten]]></item>
<item name="wcf.acp.group.option.user.article.canReadArticle"><![CDATA[Kann Artikel lesen]]></item>
<item name="wcf.acp.group.option.user.page.canAddComment"><![CDATA[Kann Kommentare erstellen]]></item>
+ <item name="wcf.acp.group.option.user.page.canAddCommentWithoutModeration"><![CDATA[Kann Kommentare ohne Moderation erstellen]]></item>
<item name="wcf.acp.group.option.user.page.canDeleteComment"><![CDATA[Kann eigene Kommentare löschen]]></item>
<item name="wcf.acp.group.option.user.page.canEditComment"><![CDATA[Kann eigene Kommentare bearbeiten]]></item>
</category>
<item name="wcf.acp.group.option.user.like.canLike"><![CDATA[Can like content]]></item>
<item name="wcf.acp.group.option.category.user.profileComment"><![CDATA[User Profile Wall]]></item>
<item name="wcf.acp.group.option.user.profileComment.canAddComment"><![CDATA[Can create comments]]></item>
+ <item name="wcf.acp.group.option.user.profileComment.canAddCommentWithoutModeration"><![CDATA[Can create comments without approval]]></item>
<item name="wcf.acp.group.option.user.profileComment.canEditComment"><![CDATA[Can edit their comments]]></item>
<item name="wcf.acp.group.option.user.profileComment.canDeleteComment"><![CDATA[Can delete their comments]]></item>
<item name="wcf.acp.group.option.user.profileComment.canDeleteCommentInOwnProfile"><![CDATA[Can delete users’ comments on their wall]]></item>
<item name="wcf.acp.group.option.mod.page.canEditComment"><![CDATA[Can edit comments]]></item>
<item name="wcf.acp.group.option.mod.page.canModerateComment"><![CDATA[Can moderate comments]]></item>
<item name="wcf.acp.group.option.user.article.canAddComment"><![CDATA[Can create comments]]></item>
+ <item name="wcf.acp.group.option.user.article.canAddCommentWithoutModeration"><![CDATA[Can create comments without approval]]></item>
<item name="wcf.acp.group.option.user.article.canDeleteComment"><![CDATA[Can delete their comments]]></item>
<item name="wcf.acp.group.option.user.article.canEditComment"><![CDATA[Can edit their comments]]></item>
<item name="wcf.acp.group.option.user.article.canReadArticle"><![CDATA[Can read articles]]></item>
<item name="wcf.acp.group.option.user.page.canAddComment"><![CDATA[Can create comments]]></item>
+ <item name="wcf.acp.group.option.user.page.canAddCommentWithoutModeration"><![CDATA[Can create comments without approval]]></item>
<item name="wcf.acp.group.option.user.page.canDeleteComment"><![CDATA[Can delete their comments]]></item>
<item name="wcf.acp.group.option.user.page.canEditComment"><![CDATA[Can edit their comments]]></item>
</category>
responses MEDIUMINT(7) NOT NULL DEFAULT '0',
responseIDs VARCHAR(255) NOT NULL DEFAULT '',
enableHtml TINYINT(1) NOT NULL DEFAULT 0,
+ isDisabled TINYINT(1) NOT NULL DEFAULT 0,
- KEY (objectTypeID, objectID, time),
+ KEY (objectTypeID, objectID, isDisabled, time),
KEY lastCommentTime (userID, time)
);
userID INT(10),
username VARCHAR(255) NOT NULL,
message TEXT NOT NULL,
+ isDisabled TINYINT(1) NOT NULL DEFAULT 0,
- KEY (commentID, time),
+ KEY (commentID, isDisabled, time),
KEY lastResponseTime (userID, time)
);