diff options
author | Friendika <info@friendika.com> | 2010-12-10 05:19:04 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2010-12-10 05:19:04 -0800 |
commit | f027e7e92082d46395e8dbcef3f77b47c22b98da (patch) | |
tree | 8e664f7e53b9dcb1604788925df6461a09e9f19e /mod | |
parent | d5355da36837458c26227f7d3eaddb0a19fed7ef (diff) | |
download | volse-hubzilla-f027e7e92082d46395e8dbcef3f77b47c22b98da.tar.gz volse-hubzilla-f027e7e92082d46395e8dbcef3f77b47c22b98da.tar.bz2 volse-hubzilla-f027e7e92082d46395e8dbcef3f77b47c22b98da.zip |
add link to album photo when status photo upload
Diffstat (limited to 'mod')
-rw-r--r-- | mod/wall_upload.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mod/wall_upload.php b/mod/wall_upload.php index 25a7ac50e..eb44012d1 100644 --- a/mod/wall_upload.php +++ b/mod/wall_upload.php @@ -19,8 +19,9 @@ function wall_upload_post(&$a) { $can_post = false; $visitor = 0; - $page_owner_uid = $r[0]['uid']; - $community_page = (($r[0]['page-flags'] == PAGE_COMMUNITY) ? true : false); + $page_owner_uid = $r[0]['uid']; + $page_owner_nick = $r[0]['nickname']; + $community_page = (($r[0]['page-flags'] == PAGE_COMMUNITY) ? true : false); if((local_user()) && (local_user() == $page_owner_uid)) $can_post = true; @@ -97,7 +98,7 @@ function wall_upload_post(&$a) { } $basename = basename($filename); - echo "<br /><br /><img src=\"".$a->get_baseurl(). "/photo/{$hash}-{$smallest}.jpg\" alt=\"$basename\" /><br /><br />"; + echo '<br /><br /><a href="' . $a->get_baseurl() . '/photos/' . $page_owner_nick . '/image/' . $hash . '" ><img src="' . $a->get_baseurl() . "/photo/{$hash}-{$smallest}.jpg\" alt=\"$basename\" /></a><br /><br />"; killme(); return; // NOTREACHED |