From: Michael <heluecht@pirati.ca> Date: Tue, 6 Mar 2018 07:12:58 +0000 (+0000) Subject: Fix: In combination with "showmore" long posts aren't shrinked anymore every few... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=23c2db2ebc00ff8395cae636a362d9bb0d681efb;p=friendica.git Fix: In combination with "showmore" long posts aren't shrinked anymore every few seconds --- diff --git a/mod/display.php b/mod/display.php index 42aad736cc..0cc15aa360 100644 --- a/mod/display.php +++ b/mod/display.php @@ -211,7 +211,11 @@ function display_content(App $a, $update = false, $update_uid = 0) { if ($update) { $item_id = $_REQUEST['item_id']; $item = dba::selectFirst('item', ['uid', 'parent'], ['id' => $item_id]); - $a->profile = ['uid' => intval($item['uid']), 'profile_uid' => intval($item['uid'])]; + if ($item['uid'] != 0) { + $a->profile = ['uid' => intval($item['uid']), 'profile_uid' => intval($item['uid'])]; + } else { + $a->profile = ['uid' => intval($update_uid), 'profile_uid' => intval($update_uid)]; + } $item_parent = $item['parent']; } else { $item_id = (($a->argc > 2) ? $a->argv[2] : 0);