Skip to content

Commit

Permalink
Link to Facebook account in user comment field
Browse files Browse the repository at this point in the history
  • Loading branch information
mnoorenberghe committed Dec 27, 2013
1 parent 09019e5 commit 4fe9369
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions module.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
exit;
}

define('WT_FACEBOOK_VERSION', 0.9);
define('WT_FACEBOOK_VERSION', "v1.0-beta.1");

class facebook_WT_Module extends WT_Module implements WT_Module_Config, WT_Module_Menu {
const scope = 'user_birthday,user_hometown,user_location,user_relationships,user_relationship_details,email';
Expand Down Expand Up @@ -497,7 +497,9 @@ private function login_or_register(&$facebookUser, $url='') {
set_user_setting($user_id, 'auto_accept', 0);
set_user_setting($user_id, 'canadmin', 0);
set_user_setting($user_id, 'sessiontime', 0);
set_user_setting($user_id, 'comment', @$facebookUser->birthday);
set_user_setting($user_id, 'comment',
@$facebookUser->birthday . "\n " .
"https://www.facebook.com/" . $this->cleanseFacebookUsername($facebookUser->username));

// Apply pre-approval settings
if (isset($preApproved[$facebookUser->username])) {
Expand Down

0 comments on commit 4fe9369

Please sign in to comment.