Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions app/Http/Controllers/Api/V1/ActivityController.php
Original file line number Diff line number Diff line change
Expand Up @@ -729,8 +729,7 @@ public function getH5pResourceSettingsOpen(Activity $activity)
*/
public function getH5pResourceSettingsShared(Activity $activity)
{
// 3 is for indexing approved - see Project Model @indexing property
if ($activity->shared || ($activity->playlist->project->indexing === (int)config('constants.indexing-approved'))) {
if ($activity->shared) {
$h5p = App::make('LaravelH5p');
$core = $h5p::$core;
$settings = $h5p::get_editor($content = null, 'preview');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -792,8 +792,7 @@ public function getH5pResourceSettings(IndependentActivity $independent_activity
*/
public function getH5pResourceSettingsShared(IndependentActivity $independent_activity)
{
// 3 is for indexing approved - see IndependentActivity Model @indexing property
if ($independent_activity->shared || ($independent_activity->indexing === (int)config('constants.indexing-approved'))) {
if ($independent_activity->shared) {
$h5p = App::make('LaravelH5p');
$core = $h5p::$core;
$settings = $h5p::get_editor();
Expand Down