Skip to content

Commit

Permalink
Merge branch 'master' into hubbub
Browse files Browse the repository at this point in the history
  • Loading branch information
emmachughes committed Dec 12, 2023
2 parents 9a7c219 + 87634bd commit a3957e6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public function edit(Request $request, $id)
'canPublish' => $article->canPublish($request),
'canList' => $article->canList($request),
'useLicense' => config('feature.licensing') === true || config('feature.licensing') === '1',
'pulseUrl' => config('feature.content-locking') ? route('lock.status', ['id' => $id]) : null,
'pulseUrl' => config('feature.content-locking') ? route('lock.pulse', ['id' => $id]) : null,
]
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ public function edit(Request $request, int $id): View
'autoTranslateTo' => $adapter->autoTranslateTo(),
'useLicense' => config('feature.licensing') === true || config('feature.licensing') === '1',
'h5pLanguage' => $h5pLanguage,
'pulseUrl' => config('feature.content-locking') ? route('lock.status', ['id' => $id]) : null,
'pulseUrl' => config('feature.content-locking') ? route('lock.pulse', ['id' => $id]) : null,
'editorLanguage' => Session::get('locale', config('app.fallback_locale')),
]);

Expand Down
2 changes: 1 addition & 1 deletion sourcecode/apis/contentauthor/routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@


Route::get('v1/content/{id}/lock-status', [LockStatusController::class, 'index'])->name('lock.status');
Route::post('v1/content/{id}/lock-status', [LockStatusController::class, 'pulse'])->name('lock.status');
Route::post('v1/content/{id}/lock-status', [LockStatusController::class, 'pulse'])->name('lock.pulse');
Route::match(['GET', 'POST'], 'v1/content/{id}/unlock', [UnlockController::class, 'index'])->name('lock.unlock');

// AJAX and REST(ish) routes
Expand Down

0 comments on commit a3957e6

Please sign in to comment.