forked from e621ng/e621ng
[UserFeedbacks] Fix errors when restoring feedbacks from ancient mod actions (#894)
This commit is contained in:
parent
a128837b1f
commit
094fb3d48b
@ -16,6 +16,9 @@ CurrentUser.as_system do
|
|||||||
record_id = mod_action.values["record_id"].to_i
|
record_id = mod_action.values["record_id"].to_i
|
||||||
destroyed_feedback_ids << record_id
|
destroyed_feedback_ids << record_id
|
||||||
|
|
||||||
|
# old mod actions do not contain the necessary information. we skip them.
|
||||||
|
next if mod_action.values["type"].nil? || mod_action.values["reason"].nil?
|
||||||
|
|
||||||
{
|
{
|
||||||
id: record_id,
|
id: record_id,
|
||||||
user_id: mod_action.values["user_id"].to_i,
|
user_id: mod_action.values["user_id"].to_i,
|
||||||
|
Loading…
Reference in New Issue
Block a user