diff --git a/app/models/screenshot.rb b/app/models/screenshot.rb index 5402a70..fdf0890 100644 --- a/app/models/screenshot.rb +++ b/app/models/screenshot.rb @@ -22,9 +22,24 @@ class Screenshot < ActiveRecord::Base end end + def uploader + # TODO: Implement the ownership of images + "Anonymous" end + def status + text = '' + # Completes the sentence: "This image…" + if self.approved + text <<'is public' + else + text <<'has to be moderated before being publicly visible' end + if self.markedfordelete + text <<' (and was requested to be removed)' + end + + text end end