Screenshot upload process fixed and tested

This commit is contained in:
Christoph Haas 2018-08-17 09:21:32 +02:00
parent 125e9c8ee5
commit 9428d8d7dd
5 changed files with 60 additions and 3 deletions

View file

@ -91,7 +91,7 @@ class Screenshot < ApplicationRecord
end
# Publish a screenshot from the moderation queue
def approve_screenshot!
def approve!
self.delete_reason = nil
self.markedfordelete = false
self.approved = true