summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-03-01 18:07:21 -0500
committerEvan Prodromou <evan@status.net>2010-03-01 18:07:21 -0500
commitf7c2c19ce89868fee5ce51d793d45c05ab209866 (patch)
treefb99192b50bbf7ba156c5226dc7a3fd91105192b
parent19ec0e3a62d4c60d7e5581b4e38ec705650b1d18 (diff)
lost important fields when switching queries
-rw-r--r--lib/omb.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/omb.php b/lib/omb.php
index 0db178989..8bbe5e8aa 100644
--- a/lib/omb.php
+++ b/lib/omb.php
@@ -77,7 +77,7 @@ function omb_broadcast_notice($notice)
/* Get remote users subscribed to this profile. */
$rp = new Remote_profile();
- $rp->query('SELECT remote_profile.* ' .
+ $rp->query('SELECT remote_profile.*, secret, token ' .
'FROM subscription JOIN remote_profile ' .
'ON subscription.subscriber = remote_profile.id ' .
'WHERE subscription.subscribed = ' . $notice->profile_id . ' ');
@@ -126,7 +126,7 @@ function omb_broadcast_profile($profile)
/* Get remote users subscribed to this profile. */
$rp = new Remote_profile();
- $rp->query('SELECT remote_profile.* ' .
+ $rp->query('SELECT remote_profile.*, secret, token ' .
'FROM subscription JOIN remote_profile ' .
'ON subscription.subscriber = remote_profile.id ' .
'WHERE subscription.subscribed = ' . $profile->id . ' ');