comments: allow votes to be soft deleted.
Make it so that when a user removes their own vote, the vote is soft deleted (the is_deleted flag is set) instead of hard deleted. Changes: * Add is_deleted flag to comment votes. * Relax uniqueness constraint so you can have multiple deleted votes on the same comment. You can still only have one active vote on the comment. * Add `soft_delete` method to Deletable concern.
This commit is contained in:
@@ -37,6 +37,8 @@ class ModAction < ApplicationRecord
|
||||
artist_unban: 185,
|
||||
comment_update: 81,
|
||||
comment_delete: 82,
|
||||
comment_vote_delete: 92,
|
||||
comment_vote_undelete: 93,
|
||||
forum_topic_delete: 202,
|
||||
forum_topic_undelete: 203,
|
||||
forum_topic_lock: 206,
|
||||
|
||||
Reference in New Issue
Block a user