diff options
author | friendica <info@friendica.com> | 2013-09-29 02:47:36 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-09-29 02:47:36 -0700 |
commit | a06f1f95944ffa578296268ecde3d77f42b69229 (patch) | |
tree | 8b6ce64cc594cb07996b5cff0a7302449effa0d0 /mod | |
parent | 6ca6bc2dd8cadb509ad84e184a11a80c6441921f (diff) | |
download | volse-hubzilla-a06f1f95944ffa578296268ecde3d77f42b69229.tar.gz volse-hubzilla-a06f1f95944ffa578296268ecde3d77f42b69229.tar.bz2 volse-hubzilla-a06f1f95944ffa578296268ecde3d77f42b69229.zip |
Issue #158
Diffstat (limited to 'mod')
-rw-r--r-- | mod/connections.php | 7 | ||||
-rw-r--r-- | mod/network.php | 6 |
2 files changed, 10 insertions, 3 deletions
diff --git a/mod/connections.php b/mod/connections.php index 47c8d9c44..95fc18174 100644 --- a/mod/connections.php +++ b/mod/connections.php @@ -315,6 +315,13 @@ function connections_content(&$a) { ), array( + 'label' => t('Recent Activity'), + 'url' => $a->get_baseurl(true) . '/network/?f=&cid=' . $contact['abook_id'], + 'sel' => '', + 'title' => t('View recent posts and comments'), + ), + + array( 'label' => (($contact['abook_flags'] & ABOOK_FLAG_BLOCKED) ? t('Unblock') : t('Block')), 'url' => $a->get_baseurl(true) . '/connections/' . $contact['abook_id'] . '/block', 'sel' => (($contact['abook_flags'] & ABOOK_FLAG_BLOCKED) ? 'active' : ''), diff --git a/mod/network.php b/mod/network.php index ac8c38290..72391497b 100644 --- a/mod/network.php +++ b/mod/network.php @@ -452,16 +452,16 @@ function network_content(&$a, $update = 0, $load = false) { elseif($cid) { - $r = q("SELECT * from abook where abook_id = %d and abook_channel = %d and not ( abook_flags & " . intval(ABOOK_FLAG_BLOCKED) . ") limit 1", + $r = q("SELECT abook.*, xchan.* from abook left join xchan on abook_xchan = xchan_hash where abook_id = %d and abook_channel = %d and not ( abook_flags & " . intval(ABOOK_FLAG_BLOCKED) . ") limit 1", intval($cid), intval(local_user()) ); if($r) { $sql_extra = " AND item.parent IN ( SELECT DISTINCT parent FROM item WHERE true $sql_options AND uid = " . intval(local_user()) . " AND ( author_xchan = '" . dbesc($r[0]['abook_xchan']) . "' or owner_xchan = '" . dbesc($r[0]['abook_xchan']) . "' ) and item_restrict = 0 ) "; - $o = '<h2>' . t('Contact: ') . $r[0]['name'] . '</h2>' . $o; + $o = '<h2>' . t('Connection: ') . $r[0]['xchan_name'] . '</h2>' . $o; } else { - notice( t('Invalid contact.') . EOL); + notice( t('Invalid connection.') . EOL); goaway($a->get_baseurl(true) . '/network'); } } |