X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fdisplay.php;h=eddaf8aaf7944251232800fe4e39cf7f10c2d787;hb=a41b4c6e6726b1158a8d05f37c1630d67e462fe5;hp=f919cba64647373b804480db22fdb96b0ec735c1;hpb=3f432a7b82480dd985dbc2a67ae23cfc1ed258c6;p=friendica.git diff --git a/mod/display.php b/mod/display.php index f919cba646..eddaf8aaf7 100644 --- a/mod/display.php +++ b/mod/display.php @@ -104,7 +104,7 @@ function display_content(&$a) { $cmnt_tpl = load_view_file('view/comment_item.tpl'); - $like_tpl = load_view_file('view/like.tpl'); + $like_tpl = load_view_file('view/like_noshare.tpl'); $tpl = load_view_file('view/wall_item.tpl'); $wallwall = load_view_file('view/wallwall_item.tpl'); @@ -217,6 +217,9 @@ function display_content(&$a) { $profile_name = (((strlen($item['author-name'])) && $diff_author) ? $item['author-name'] : $item['name']); $profile_avatar = (((strlen($item['author-avatar'])) && $diff_author) ? $item['author-avatar'] : $item['thumb']); + $edpost = ''; + if((local_user()) && ($item['uid'] == local_user()) && ($item['id'] == $item['parent']) && (intval($item['wall']) == 1)) + $edpost = ''; // Can we use our special contact URL for this author? if(strlen($item['author-link'])) { @@ -276,6 +279,7 @@ function display_content(&$a) { '$owner_photo' => $owner_photo, '$owner_name' => $owner_name, '$plink' => get_plink($item), + '$edpost' => $edpost, '$drop' => $drop, '$vote' => $likebuttons, '$like' => $like,