Permalink
Browse files

bug fix

  • Loading branch information...
1 parent 8ec7bd9 commit cda9e1ea6a3fec7b93f91163bde97498754c1aad @wb213 committed Mar 12, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 controller/direct.php
  2. +1 −1 tag/direct.php
View
@@ -26,7 +26,7 @@ function create($user) {
//check if target user following you
$request = array('target_screen_name' => $user);
$friendship = twitter_get('friendships/show', $request);
- $is_followed_by = $friendship->source->followed_by;
+ $is_followed_by = $friendship->relationship->source->followed_by;
$content['is_followed_by'] = $is_followed_by;
}
View
@@ -18,7 +18,7 @@ function is_create_direct() {
function create_direct_html() {
global $content;
- if (! empty($content['followed_by'])) {
+ if (! empty($content['is_followed_by'])) {
echo "<div class='warning'>Sorry, Target user not following you, you can't send the DM to him/her.";
return;
}

0 comments on commit cda9e1e

Please sign in to comment.