aboutsummaryrefslogtreecommitdiffstats
path: root/include/salmon.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-08-24 20:40:08 -0700
committerFriendika <info@friendika.com>2011-08-24 20:40:08 -0700
commit8f6ae2b66044a36996ac92a8db1a540db9c71fe3 (patch)
tree7f09c79da7a8044eb6a242de9dd9fae7b8a647f2 /include/salmon.php
parent96adbb64572369ab15e2a1da5b44fc7f0dc76aa1 (diff)
downloadvolse-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.php7
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