l11n, unit/app and simplification fixes

This commit is contained in:
Dennis Eichhorn 2023-01-07 19:00:32 +01:00
parent 1957796677
commit e860e9b075

View File

@ -343,7 +343,7 @@ final class ApiController extends Controller
$comment->title = (string) ($request->getData('title') ?? $comment->title);
$comment->contentRaw = (string) ($request->getData('plain') ?? $comment->contentRaw);
$comment->content = Markdown::parse((string) ($request->getData('plain') ?? $comment->contentRaw));
$comment->ref = $request->hasData('ref') ? (int) $request->getData('ref') : $comment->ref;
$comment->ref = $request->getData('ref', 'int');
return $comment;
}