Address feedback
This commit is contained in:
parent
ba0b83b0b0
commit
eff7740a67
3 changed files with 6 additions and 7 deletions
|
@ -16,8 +16,6 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*
|
|
||||||
* See update_profile.php for documentation
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Friendica\Module\Item;
|
namespace Friendica\Module\Item;
|
||||||
|
@ -47,6 +45,9 @@ use Friendica\Network\HTTPException;
|
||||||
use Friendica\Content\Widget;
|
use Friendica\Content\Widget;
|
||||||
use Psr\Log\LoggerInterface;
|
use Psr\Log\LoggerInterface;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Controller to display one item and its conversation
|
||||||
|
*/
|
||||||
class Display extends BaseModule
|
class Display extends BaseModule
|
||||||
{
|
{
|
||||||
/** @var App\Page */
|
/** @var App\Page */
|
||||||
|
|
|
@ -16,8 +16,6 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*
|
|
||||||
* See update_profile.php for documentation
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Friendica\Module\Item;
|
namespace Friendica\Module\Item;
|
||||||
|
|
|
@ -56,7 +56,7 @@ class Display extends DisplayModule
|
||||||
throw new HTTPException\NotFoundException($this->t('The requested item doesn\'t exist or has been deleted.'));
|
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'];
|
$parentUriId = $item['parent-uri-id'];
|
||||||
|
|
||||||
if (empty($force)) {
|
if (empty($force)) {
|
||||||
|
|
Loading…
Reference in a new issue