Commit b77a10ba authored by Guy Thouret's avatar Guy Thouret

(fix) Strictness in blog api change from linter caused activity to not be...

(fix) Strictness in blog api change from linter caused activity to not be created - Related to front#1889
1 merge request!303Propagate Properties when entities get updated
Pipeline #82668486 passed with stages
in 11 minutes and 1 second
......@@ -337,7 +337,7 @@ class blog implements Interfaces\Api
}
if ($saved) {
if ($blog->isPublished() && in_array($blog->getAccessId(), [Access::PUBLIC, Access::LOGGED_IN], true)) {
if ($blog->isPublished() && in_array($blog->getAccessId(), [Access::PUBLIC, Access::LOGGED_IN], false)) {
if (!$editing || ($editing && !$alreadyPublished) || ($editing && $oldAccessId == Access::UNLISTED)) {
(new CreateActivity())->save($blog);
}
......
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