function subs_subscribe_to($user, $other)
{
+ if (is_a($other, 'User')) {
+ $other = $other->getProfile();
+ }
try {
Subscription::start($user->getProfile(), $other);
return true;
function subs_unsubscribe_to($user, $other)
{
+ if (is_a($other, 'User')) {
+ $other = $other->getProfile();
+ }
try {
Subscription::cancel($user->getProfile(), $other);
return true;