missing salmon key? report it.

This commit is contained in:
Friendika 2011-08-24 20:40:08 -07:00
commit 8f6ae2b660
4 changed files with 16 additions and 5 deletions

View file

@ -73,6 +73,13 @@ function slapper($owner,$url,$slap) {
if(! strlen($url))
return;
if(! $owner['sprvkey']) {
logger(sprintf("slapper: user '%s' (%d) does not have a salmon private key. Send failed.",
$owner['username'],$owner['uid']));
return;
}
// add all namespaces to item
$namespaces = <<< EOT