return FALSE;
}
+ # Everyone is subscribed to themself
+
+ $subscription = new Subscription();
+ $subscription->subscriber = $user->id;
+ $subscription->subscribed = $user->id;
+ $subscription->created = $user->created;
+
+ $result = $subscription->insert();
+
+ if (!$result) {
+ common_log_db_error($subscription, 'INSERT', __FILE__);
+ return FALSE;
+ }
+
if ($email) {
$confirm = new Confirm_address();
$subs = DB_DataObject::factory('subscription');
$subs->subscriber = $profile->id;
+ $subs->whereAdd('subscribed != ' . $profile->id);
+
$subs->orderBy('created DESC');
# We ask for an extra one to know if we need to do another page
function define_subs(&$subs, &$profile) {
$subs->subscribed = $profile->id;
+ $subs->whereAdd('subscriber != ' . $profile->id);
}
function div_class() {
function define_subs(&$subs, &$profile) {
$subs->subscriber = $profile->id;
+ $subs->whereAdd('subscribed != ' . $profile->id);
}
function div_class() {