]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Item/Display.php
Update function / rearrange tab order
[friendica.git] / src / Module / Item / Display.php
index b2ed43c5b51d707125818e8b68aadbada5c6958f..714598a8e66814fa896c0e27010526749f58b5a0 100644 (file)
@@ -133,7 +133,9 @@ class Display extends BaseModule
                }
 
                if (empty($item)) {
-                       throw new HTTPException\NotFoundException($this->t('The requested item doesn\'t exist or has been deleted.'));
+                       $this->page['aside'] = '';
+                       $displayNotFound = new DisplayNotFound($this->l10n, $this->baseUrl, $this->args, $this->logger, $this->profiler, $this->response, $this->server, $this->parameters);
+                       return $displayNotFound->content();
                }
 
                if ($item['gravity'] != Item::GRAVITY_PARENT) {
@@ -273,7 +275,7 @@ class Display extends BaseModule
                        $output .= $this->conversation->statusEditor([], 0, true);
                }
 
-               $output .= $this->conversation->create([$item], Conversation::MODE_DISPLAY, $updateUid, false, 'commented', $itemUid);
+               $output .= $this->conversation->render([$item], Conversation::MODE_DISPLAY, $updateUid, false, 'commented', $itemUid);
 
                return $output;
        }