]> git.mxchange.org Git - friendica.git/commitdiff
turn on comment edit
authorfriendica <info@friendica.com>
Mon, 16 Apr 2012 10:51:48 +0000 (03:51 -0700)
committerfriendica <info@friendica.com>
Mon, 16 Apr 2012 10:51:48 +0000 (03:51 -0700)
include/conversation.php

index f4a5647427b5b5db2f104a542185e24735eef0c1..e5549a9c101ecfc810962dd4b19dc18bb6e67c0e 100644 (file)
@@ -559,10 +559,10 @@ function conversation(&$a, $items, $mode, $update, $preview = false) {
                                        }
                                }
 
-                               $edpost = (((($profile_owner == local_user()) && ($toplevelpost) && (intval($item['wall']) == 1)) || ($mode === 'notes'))
-                                               ? array($a->get_baseurl($ssl_state)."/editpost/".$item['id'], t("Edit"))
-                                               : False);
-
+                               if(local_user() && link_compare($a->contact['url'],$item['author-link']))
+                                       $edpost = array($a->get_baseurl($ssl_state)."/editpost/".$item['id'], t("Edit"));
+                               else
+                                       $edpost = false;
 
                                $drop = '';
                                $dropping = false;