{
$author = [];
$shared = $this->contentItem->getSharedPost($item, ['author-link']);
- if (array_key_exists('comment', $shared) && !$shared['comment']) {
+ if (array_key_exists('comment', $shared) && strval($shared['comment']) !== '') {
$author = Contact::getByURLForUser($shared['post']['author-link'], $this->session->getLocalUserId());
}
$contact = Contact::getByURL($addr ?: $dest);
if ($contact === [] && $owa === 0) {
- # code...
$this->logger->info('No contact record found, no oWA, redirecting to destination.', ['request' => $request, 'server' => $_SERVER, 'dest' => $dest]);
$this->app->redirect($dest);
}
}
$Image = Photo::getImageForPhoto($photos[0]);
+ if (!$Image->isValid()) {
+ throw new HTTPException\InternalServerErrorException();
+ }
$imagecrop = [
'resource-id' => $resource_id,