mirror of
https://github.com/wassname/talk.git
synced 2026-08-20 12:50:41 +08:00
disallow adding a tag to a deleted comment
This commit is contained in:
@@ -163,6 +163,11 @@ class TagsService {
|
||||
},
|
||||
};
|
||||
|
||||
if (item_type === 'COMMENT') {
|
||||
// Don't allow adding tags to deleted comments.
|
||||
query.deleted_at = null;
|
||||
}
|
||||
|
||||
// If ownership verification is required, ensure that the person that is
|
||||
// assigning the tag is the same person that owns the comment.
|
||||
if (ownershipCheck) {
|
||||
|
||||
Reference in New Issue
Block a user