From: Philipp Date: Tue, 15 Nov 2022 18:53:53 +0000 (+0100) Subject: Address feedback X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=eff7740a674a8f38eb3e68af96c3f7487773be42;p=friendica.git Address feedback --- diff --git a/src/Module/Item/Display.php b/src/Module/Item/Display.php index 1b54081d39..ff7455696b 100644 --- a/src/Module/Item/Display.php +++ b/src/Module/Item/Display.php @@ -16,8 +16,6 @@ * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . - * - * See update_profile.php for documentation */ namespace Friendica\Module\Item; @@ -47,6 +45,9 @@ use Friendica\Network\HTTPException; use Friendica\Content\Widget; use Psr\Log\LoggerInterface; +/** + * Controller to display one item and its conversation + */ class Display extends BaseModule { /** @var App\Page */ diff --git a/src/Module/Item/Feed.php b/src/Module/Item/Feed.php index c1b12446c8..c640a80ba7 100644 --- a/src/Module/Item/Feed.php +++ b/src/Module/Item/Feed.php @@ -16,8 +16,6 @@ * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . - * - * See update_profile.php for documentation */ namespace Friendica\Module\Item; diff --git a/src/Module/Update/Display.php b/src/Module/Update/Display.php index 9467badf32..11e3a3eda7 100644 --- a/src/Module/Update/Display.php +++ b/src/Module/Update/Display.php @@ -38,8 +38,8 @@ class Display extends DisplayModule throw new HTTPException\UnauthorizedException($this->t('Access denied.')); } - $profileUid = $request['p'] ?? 0; - $force = $request['force'] ?? false; + $profileUid = $request['p'] ?? 0; + $force = $request['force'] ?? false; $uriId = $request['uri_id'] ?? 0; if (empty($uriId)) { @@ -56,7 +56,7 @@ class Display extends DisplayModule throw new HTTPException\NotFoundException($this->t('The requested item doesn\'t exist or has been deleted.')); } - $this->app->setProfileOwner($item['uid'] ?? $profileUid); + $this->app->setProfileOwner($item['uid'] ?: $profileUid); $parentUriId = $item['parent-uri-id']; if (empty($force)) {