diff options
author | Friendika <info@friendika.com> | 2011-08-24 20:40:08 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-08-24 20:40:08 -0700 |
commit | 8f6ae2b66044a36996ac92a8db1a540db9c71fe3 (patch) | |
tree | 7f09c79da7a8044eb6a242de9dd9fae7b8a647f2 /include/salmon.php | |
parent | 96adbb64572369ab15e2a1da5b44fc7f0dc76aa1 (diff) | |
download | volse-hubzilla-8f6ae2b66044a36996ac92a8db1a540db9c71fe3.tar.gz volse-hubzilla-8f6ae2b66044a36996ac92a8db1a540db9c71fe3.tar.bz2 volse-hubzilla-8f6ae2b66044a36996ac92a8db1a540db9c71fe3.zip |
missing salmon key? report it.
Diffstat (limited to 'include/salmon.php')
-rw-r--r-- | include/salmon.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/salmon.php b/include/salmon.php index 4043b4f1d..ba61fffcc 100644 --- a/include/salmon.php +++ b/include/salmon.php @@ -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 |