Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Added quicksocial redirect links to friends listing.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelchisari authored and The Appleseed Project committed Oct 23, 2010
1 parent 0878c65 commit 347c4dd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions components/friends/controllers/friends.php
Original file line number Diff line number Diff line change
Expand Up @@ -411,11 +411,12 @@ private function _Prep ( ) {

$row->Find ( '[class=friends-status]', 0 )->innertext = $userInfo->status;

$row->Find ( '[class=friends-identity]', 0 )->href = 'http://' . $domain . '/profile/' . $username . '/';
$data = array ( 'account' => $userInfo->account );
$row->Find ( '[class=friends-identity]', 0 )->href = $this->GetSys ( 'Event' )->Trigger ( 'Create', 'User', 'Link', $data );
$row->Find ( '[class=friends-identity]', 0 )->innertext = $username . '@' . $domain;
$row->Find ( '[class=friends-fullname-link]', 0 )->innertext = $userInfo->fullname;
$row->Find ( '[class=friends-fullname-link]', 0 )->href = 'http://' . $domain . '/profile/' . $username . '/';
$row->Find ( '[class=friends-icon-link]', 0 )->href = 'http://' . $domain . '/profile/' . $username . '/';
$row->Find ( '[class=friends-fullname-link]', 0 )->href = $this->GetSys ( 'Event' )->Trigger ( 'Create', 'User', 'Link', $data );
$row->Find ( '[class=friends-icon-link]', 0 )->href = $this->GetSys ( 'Event' )->Trigger ( 'Create', 'User', 'Link', $data );

$mutualFriendsCount = count ( array_intersect ( $currentInfo->friends, $userInfo->friends ) );

Expand Down

0 comments on commit 347c4dd

Please sign in to comment.