aboutsummaryrefslogtreecommitdiffstats
path: root/include/queue_fn.php
diff options
context:
space:
mode:
authormrjive <mrjive@mrjive.it>2018-04-19 09:51:58 +0200
committerGitHub <noreply@github.com>2018-04-19 09:51:58 +0200
commitc8ff773b9609f723217712f0faf451238d41327d (patch)
tree4127afeee7d8a3b710863d9ad022fed2b82a8ebc /include/queue_fn.php
parent283e5d3a5c9557195a640de5f0acefc884e904bb (diff)
parent92b08f1f07a25976342dc885331ecb1531e256aa (diff)
downloadvolse-hubzilla-c8ff773b9609f723217712f0faf451238d41327d.tar.gz
volse-hubzilla-c8ff773b9609f723217712f0faf451238d41327d.tar.bz2
volse-hubzilla-c8ff773b9609f723217712f0faf451238d41327d.zip
Merge pull request #9 from redmatrix/dev
Dev
Diffstat (limited to 'include/queue_fn.php')
-rw-r--r--include/queue_fn.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/queue_fn.php b/include/queue_fn.php
index 798ac36db..f05bac5b0 100644
--- a/include/queue_fn.php
+++ b/include/queue_fn.php
@@ -95,6 +95,12 @@ function queue_set_delivered($id,$channel = 0) {
function queue_insert($arr) {
+ // do not queue anything with no destination
+
+ if(! (array_key_exists('posturl',$arr) && trim($arr['posturl']))) {
+ return false;
+ }
+
$x = q("insert into outq ( outq_hash, outq_account, outq_channel, outq_driver, outq_posturl, outq_async, outq_priority,
outq_created, outq_updated, outq_scheduled, outq_notify, outq_msg )
values ( '%s', %d, %d, '%s', '%s', %d, %d, '%s', '%s', '%s', '%s', '%s' )",