]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #4554 from annando/avoid-deflate
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Tue, 6 Mar 2018 08:52:12 +0000 (09:52 +0100)
committerGitHub <noreply@github.com>
Tue, 6 Mar 2018 08:52:12 +0000 (09:52 +0100)
Fix: In combination with "showmore" long posts aren't shrinked anymore

mod/display.php

index 42aad736cc4e8503cd9fe94e9bb303af42c53352..0cc15aa360bca636dc2aaa828c003df1fb53e701 100644 (file)
@@ -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);