aboutsummaryrefslogtreecommitdiffstats
path: root/mod/profile.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-03-18 00:30:34 -0700
committerFriendika <info@friendika.com>2011-03-18 00:30:34 -0700
commit9f5201dcaa4737427da7ec37969556c574e4711f (patch)
treea47c58b36c8399921e261bfaa0387f2b14edaa67 /mod/profile.php
parentea03d9fa86827cbc7e86885bbe2493d8a9739546 (diff)
downloadvolse-hubzilla-9f5201dcaa4737427da7ec37969556c574e4711f.tar.gz
volse-hubzilla-9f5201dcaa4737427da7ec37969556c574e4711f.tar.bz2
volse-hubzilla-9f5201dcaa4737427da7ec37969556c574e4711f.zip
edit posting after submission
Diffstat (limited to 'mod/profile.php')
-rw-r--r--mod/profile.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/mod/profile.php b/mod/profile.php
index c0989bd28..1053e4a1e 100644
--- a/mod/profile.php
+++ b/mod/profile.php
@@ -348,6 +348,12 @@ function profile_content(&$a, $update = 0) {
else
$sparkle = '';
+
+ $edpost = '';
+ if((local_user()) && ($a->profile['profile_uid'] == local_user()) && ($item['id'] == $item['parent']) && (intval($item['wall']) == 1))
+ $edpost = '<a class="editpost" href="' . $a->get_baseurl() . '/editpost/' . $item['id'] . '" title="' . t('Edit') . '"><img src="images/pencil.gif" /></a>';
+
+
// We would prefer to use our own avatar link for this item because the one in the author-avatar might reference a
// remote site (which could be down). We will use author-avatar if we haven't got something stored locally.
// We use this same logic block in mod/network.php to determine it this is a third party post and we don't have any
@@ -400,6 +406,7 @@ function profile_content(&$a, $update = 0) {
'$location' => $location,
'$indent' => $indent,
'$plink' => get_plink($item),
+ '$edpost' => $edpost,
'$drop' => $drop,
'$like' => $like,
'$vote' => $likebuttons,