Commit 572a567e authored by Ben Hayward's avatar Ben Hayward

Lint

1 merge request!384[Sprint/QuietQuail](fix): Blog & media edit updated to new nsfw system #1936
Pipeline #100614162 passed with stages
in 7 minutes and 15 seconds
......@@ -364,7 +364,7 @@ class newsfeed implements Interfaces\Api
'full_hd' => $embeded->getFlag('full_hd') ?? false,
])
->setTitle($embeded->title)
->setNsfw($embeded->getNSFW())
->setNsfw($embeded->getNSFW())
->setBlurb($embeded->description)
->setMessage($message);
} else {
......@@ -379,7 +379,7 @@ class newsfeed implements Interfaces\Api
'mature' => $embeded instanceof Flaggable ? $embeded->getFlag('mature') : false
])
->setMature($embeded instanceof Flaggable ? $embeded->getFlag('mature') : false)
->setNsfw($embeded->getNSFW())
->setNsfw($embeded->getNSFW())
->setTitle($embeded->title)
->setBlurb($embeded->description)
->export()
......@@ -400,7 +400,7 @@ class newsfeed implements Interfaces\Api
'gif' => (bool) $embeded->gif ?? false,
]])
->setMature($embeded instanceof Flaggable ? $embeded->getFlag('mature') : false)
->setNsfw($embeded->getNSFW())
->setNsfw($embeded->getNSFW())
->setFromEntity($embeded)
->setTitle($embeded->title)
->setBlurb($embeded->description)
......
......@@ -347,7 +347,7 @@ class Image extends File
'src' => \elgg_get_site_url() . 'fs/v1/thumbnail/' . $this->guid,
'href' => \elgg_get_site_url() . 'media/' . ($this->container_guid ? $this->container_guid . '/' : '') . $this->guid,
'mature' => $this->getFlag('mature'),
'nsfw' => $this->getFlag('nsfw'),
'nsfw' => $this->nsfw ?: [],
'width' => $this->width ?? 0,
'height' => $this->height ?? 0,
'gif' => (bool) ($this->gif ?? false),
......
Please register or to comment