OStatus support for people tags

This commit is contained in:
Shashi Gowda
2011-03-07 00:45:34 +05:30
parent b372ed721d
commit c335db4bbc
13 changed files with 1151 additions and 47 deletions

View File

@@ -112,6 +112,12 @@ class SalmonAction extends Action
case ActivityVerb::LEAVE:
$this->handleLeave();
break;
case ActivityVerb::TAG:
$this->handleTag();
break;
case ActivityVerb::UNTAG:
$this->handleUntag();
break;
case ActivityVerb::UPDATE_PROFILE:
$this->handleUpdateProfile();
break;
@@ -172,6 +178,16 @@ class SalmonAction extends Action
throw new ClientException(_m("This target doesn't understand leave events."));
}
function handleTag()
{
throw new ClientException(_m("This target doesn't understand tag events."));
}
function handleUntag()
{
throw new ClientException(_m("This target doesn't understand untag events."));
}
/**
* Remote user sent us an update to their profile.
* If we already know them, accept the updates.