Commit e690c3b3 authored by Marcelo Rivera's avatar Marcelo Rivera

(fix): 1 = safe; 2 = open

parent 50260574
No related merge requests found
Pipeline #71910855 failed with stages
in 1 minute and 17 seconds
......@@ -211,7 +211,7 @@ class Campaign implements JsonSerializable
public function setNsfw($value)
{
$this->nsfw = $value;
$this->setRating(count($this->getNsfw()) > 0 ? 0 : 1); // 0 = open; 1 = safe
$this->setRating(count($this->getNsfw()) > 0 ? 2 : 1); // 2 = open; 1 = safe
return $this;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment