sforkowany z mirror/friendica
Merge pull request #758 from annando/master
Better use of APC, Preparations for the pumpio synchronisation, fix youtube for firefox2022.09-rc
commit
51d934ee70
4
boot.php
4
boot.php
|
@ -139,6 +139,8 @@ define ( 'NETWORK_LINKEDIN', 'lnkd'); // LinkedIn
|
||||||
define ( 'NETWORK_XMPP', 'xmpp'); // XMPP
|
define ( 'NETWORK_XMPP', 'xmpp'); // XMPP
|
||||||
define ( 'NETWORK_MYSPACE', 'mysp'); // MySpace
|
define ( 'NETWORK_MYSPACE', 'mysp'); // MySpace
|
||||||
define ( 'NETWORK_GPLUS', 'goog'); // Google+
|
define ( 'NETWORK_GPLUS', 'goog'); // Google+
|
||||||
|
define ( 'NETWORK_PUMPIO', 'pump'); // pump.io
|
||||||
|
define ( 'NETWORK_TWITTER', 'twit'); // Twitter
|
||||||
|
|
||||||
define ( 'NETWORK_PHANTOM', 'unkn'); // Place holder
|
define ( 'NETWORK_PHANTOM', 'unkn'); // Place holder
|
||||||
|
|
||||||
|
@ -161,6 +163,8 @@ $netgroup_ids = array(
|
||||||
NETWORK_XMPP => (-10),
|
NETWORK_XMPP => (-10),
|
||||||
NETWORK_MYSPACE => (-11),
|
NETWORK_MYSPACE => (-11),
|
||||||
NETWORK_GPLUS => (-12),
|
NETWORK_GPLUS => (-12),
|
||||||
|
NETWORK_PUMPIO => (-13),
|
||||||
|
NETWORK_TWITTER => (-14),
|
||||||
|
|
||||||
NETWORK_PHANTOM => (-127),
|
NETWORK_PHANTOM => (-127),
|
||||||
);
|
);
|
||||||
|
|
|
@ -534,6 +534,9 @@ class Photo {
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
|
// Enable interlacing
|
||||||
|
imageinterlace($this->image, true);
|
||||||
|
|
||||||
switch($this->getType()){
|
switch($this->getType()){
|
||||||
case "image/png":
|
case "image/png":
|
||||||
$quality = get_config('system','png_quality');
|
$quality = get_config('system','png_quality');
|
||||||
|
@ -676,6 +679,7 @@ function guess_image_type($filename, $fromcurl=false) {
|
||||||
*/
|
*/
|
||||||
$image = new Imagick($filename);
|
$image = new Imagick($filename);
|
||||||
$type = $image->getImageMimeType();
|
$type = $image->getImageMimeType();
|
||||||
|
$image->setInterlaceScheme(Imagick::INTERLACE_PLANE);
|
||||||
} else {
|
} else {
|
||||||
$ext = pathinfo($filename, PATHINFO_EXTENSION);
|
$ext = pathinfo($filename, PATHINFO_EXTENSION);
|
||||||
$types = Photo::supportedTypes();
|
$types = Photo::supportedTypes();
|
||||||
|
|
|
@ -36,7 +36,11 @@ function stripcode_br_cb($s) {
|
||||||
|
|
||||||
function tryoembed($match){
|
function tryoembed($match){
|
||||||
$url = ((count($match)==2)?$match[1]:$match[2]);
|
$url = ((count($match)==2)?$match[1]:$match[2]);
|
||||||
// logger("tryoembed: $url");
|
|
||||||
|
// Always embed the SSL version
|
||||||
|
$url = str_replace("http://www.youtube.com/", "https://www.youtube.com/", $url);
|
||||||
|
|
||||||
|
//logger("tryoembed: $url");
|
||||||
|
|
||||||
$o = oembed_fetch_url($url);
|
$o = oembed_fetch_url($url);
|
||||||
|
|
||||||
|
@ -423,8 +427,8 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true, $simplehtml = fal
|
||||||
|
|
||||||
// removing multiplicated newlines
|
// removing multiplicated newlines
|
||||||
if (get_config("system", "remove_multiplicated_lines")) {
|
if (get_config("system", "remove_multiplicated_lines")) {
|
||||||
$search = array("\n\n\n", "\n ", " \n", "[/quote]\n\n", "\n[/quote]");
|
$search = array("\n\n\n", "\n ", " \n", "[/quote]\n\n", "\n[/quote]", "[/li]\n", "\n[li]", "\n[ul]", "[/ul]\n");
|
||||||
$replace = array("\n\n", "\n", "\n", "[/quote]\n", "[/quote]");
|
$replace = array("\n\n", "\n", "\n", "[/quote]\n", "[/quote]", "[/li]", "[li]", "[ul]", "[/ul]");
|
||||||
do {
|
do {
|
||||||
$oldtext = $Text;
|
$oldtext = $Text;
|
||||||
$Text = str_replace($search, $replace, $Text);
|
$Text = str_replace($search, $replace, $Text);
|
||||||
|
@ -638,19 +642,19 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true, $simplehtml = fal
|
||||||
|
|
||||||
// Youtube extensions
|
// Youtube extensions
|
||||||
if ($tryoembed) {
|
if ($tryoembed) {
|
||||||
$Text = preg_replace_callback("/\[youtube\](https?:\/\/www.youtube.com\/watch\?v\=.*?)\[\/youtube\]/ism", 'tryoembed', $Text);
|
$Text = preg_replace_callback("/\[youtube\](https?:\/\/www.youtube.com\/watch\?v\=.*?)\[\/youtube\]/ism", 'tryoembed', $Text);
|
||||||
$Text = preg_replace_callback("/\[youtube\](www.youtube.com\/watch\?v\=.*?)\[\/youtube\]/ism", 'tryoembed', $Text);
|
$Text = preg_replace_callback("/\[youtube\](www.youtube.com\/watch\?v\=.*?)\[\/youtube\]/ism", 'tryoembed', $Text);
|
||||||
$Text = preg_replace_callback("/\[youtube\](https?:\/\/youtu.be\/.*?)\[\/youtube\]/ism",'tryoembed',$Text);
|
$Text = preg_replace_callback("/\[youtube\](https?:\/\/youtu.be\/.*?)\[\/youtube\]/ism",'tryoembed',$Text);
|
||||||
}
|
}
|
||||||
|
|
||||||
$Text = preg_replace("/\[youtube\]https?:\/\/www.youtube.com\/watch\?v\=(.*?)\[\/youtube\]/ism",'[youtube]$1[/youtube]',$Text);
|
$Text = preg_replace("/\[youtube\]https?:\/\/www.youtube.com\/watch\?v\=(.*?)\[\/youtube\]/ism",'[youtube]$1[/youtube]',$Text);
|
||||||
$Text = preg_replace("/\[youtube\]https?:\/\/www.youtube.com\/embed\/(.*?)\[\/youtube\]/ism",'[youtube]$1[/youtube]',$Text);
|
$Text = preg_replace("/\[youtube\]https?:\/\/www.youtube.com\/embed\/(.*?)\[\/youtube\]/ism",'[youtube]$1[/youtube]',$Text);
|
||||||
$Text = preg_replace("/\[youtube\]https?:\/\/youtu.be\/(.*?)\[\/youtube\]/ism",'[youtube]$1[/youtube]',$Text);
|
$Text = preg_replace("/\[youtube\]https?:\/\/youtu.be\/(.*?)\[\/youtube\]/ism",'[youtube]$1[/youtube]',$Text);
|
||||||
|
|
||||||
if ($tryoembed)
|
if ($tryoembed)
|
||||||
$Text = preg_replace("/\[youtube\]([A-Za-z0-9\-_=]+)(.*?)\[\/youtube\]/ism", '<iframe width="' . $a->videowidth . '" height="' . $a->videoheight . '" src="http://www.youtube.com/embed/$1" frameborder="0" ></iframe>', $Text);
|
$Text = preg_replace("/\[youtube\]([A-Za-z0-9\-_=]+)(.*?)\[\/youtube\]/ism", '<iframe width="' . $a->videowidth . '" height="' . $a->videoheight . '" src="https://www.youtube.com/embed/$1" frameborder="0" ></iframe>', $Text);
|
||||||
else
|
else
|
||||||
$Text = preg_replace("/\[youtube\]([A-Za-z0-9\-_=]+)(.*?)\[\/youtube\]/ism", "http://www.youtube.com/watch?v=$1", $Text);
|
$Text = preg_replace("/\[youtube\]([A-Za-z0-9\-_=]+)(.*?)\[\/youtube\]/ism", "https://www.youtube.com/watch?v=$1", $Text);
|
||||||
|
|
||||||
|
|
||||||
if ($tryoembed) {
|
if ($tryoembed) {
|
||||||
|
@ -714,22 +718,29 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true, $simplehtml = fal
|
||||||
// Only do it when it has to be done - for performance reasons
|
// Only do it when it has to be done - for performance reasons
|
||||||
// Update: Now it is done every time - since bad structured html can break a whole page
|
// Update: Now it is done every time - since bad structured html can break a whole page
|
||||||
//if (!$tryoembed) {
|
//if (!$tryoembed) {
|
||||||
// $doc = new DOMDocument();
|
// $doc = new DOMDocument();
|
||||||
// $doc->preserveWhiteSpace = false;
|
// $doc->preserveWhiteSpace = false;
|
||||||
|
|
||||||
// $Text = mb_convert_encoding($Text, 'HTML-ENTITIES', "UTF-8");
|
// $Text = mb_convert_encoding($Text, 'HTML-ENTITIES', "UTF-8");
|
||||||
|
|
||||||
// $doctype = '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">';
|
// $doctype = '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">';
|
||||||
// @$doc->loadHTML($doctype."<html><body>".$Text."</body></html>");
|
// @$doc->loadHTML($doctype."<html><body>".$Text."</body></html>");
|
||||||
|
|
||||||
// $Text = $doc->saveHTML();
|
// $Text = $doc->saveHTML();
|
||||||
// $Text = str_replace(array("<html><body>", "</body></html>", $doctype), array("", "", ""), $Text);
|
// $Text = str_replace(array("<html><body>", "</body></html>", $doctype), array("", "", ""), $Text);
|
||||||
|
|
||||||
// $Text = str_replace('<br></li>','</li>', $Text);
|
// $Text = str_replace('<br></li>','</li>', $Text);
|
||||||
|
|
||||||
// $Text = mb_convert_encoding($Text, "UTF-8", 'HTML-ENTITIES');
|
// $Text = mb_convert_encoding($Text, "UTF-8", 'HTML-ENTITIES');
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
// Clean up some useless linebreaks in lists
|
||||||
|
//$Text = str_replace('<br /><ul','<ul ', $Text);
|
||||||
|
//$Text = str_replace('</ul><br />','</ul>', $Text);
|
||||||
|
//$Text = str_replace('</li><br />','</li>', $Text);
|
||||||
|
//$Text = str_replace('<br /><li>','<li>', $Text);
|
||||||
|
// $Text = str_replace('<br /><ul','<ul ', $Text);
|
||||||
|
|
||||||
// Remove all hashtag addresses
|
// Remove all hashtag addresses
|
||||||
if (!$tryoembed AND get_config("system", "remove_hashtags_on_export")) {
|
if (!$tryoembed AND get_config("system", "remove_hashtags_on_export")) {
|
||||||
$pattern = '/#<a.*?href="(.*?)".*?>(.*?)<\/a>/is';
|
$pattern = '/#<a.*?href="(.*?)".*?>(.*?)<\/a>/is';
|
||||||
|
|
|
@ -28,4 +28,4 @@ function cli_startup() {
|
||||||
|
|
||||||
load_hooks();
|
load_hooks();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,6 +18,9 @@
|
||||||
if(! function_exists('load_config')) {
|
if(! function_exists('load_config')) {
|
||||||
function load_config($family) {
|
function load_config($family) {
|
||||||
global $a;
|
global $a;
|
||||||
|
|
||||||
|
// To-Do: How to integrate APC here?
|
||||||
|
|
||||||
$r = q("SELECT * FROM `config` WHERE `cat` = '%s'", dbesc($family));
|
$r = q("SELECT * FROM `config` WHERE `cat` = '%s'", dbesc($family));
|
||||||
if(count($r)) {
|
if(count($r)) {
|
||||||
foreach($r as $rr) {
|
foreach($r as $rr) {
|
||||||
|
@ -68,7 +71,11 @@ function get_config($family, $key, $instore = false) {
|
||||||
if (apc_exists($family."|".$key)) {
|
if (apc_exists($family."|".$key)) {
|
||||||
$val = apc_fetch($family."|".$key);
|
$val = apc_fetch($family."|".$key);
|
||||||
$a->config[$family][$key] = $val;
|
$a->config[$family][$key] = $val;
|
||||||
return $val;
|
|
||||||
|
if ($val === '!<unset>!')
|
||||||
|
return false;
|
||||||
|
else
|
||||||
|
return $val;
|
||||||
}
|
}
|
||||||
|
|
||||||
$ret = q("SELECT `v` FROM `config` WHERE `cat` = '%s' AND `k` = '%s' LIMIT 1",
|
$ret = q("SELECT `v` FROM `config` WHERE `cat` = '%s' AND `k` = '%s' LIMIT 1",
|
||||||
|
@ -79,10 +86,19 @@ function get_config($family, $key, $instore = false) {
|
||||||
// manage array value
|
// manage array value
|
||||||
$val = (preg_match("|^a:[0-9]+:{.*}$|s", $ret[0]['v'])?unserialize( $ret[0]['v']):$ret[0]['v']);
|
$val = (preg_match("|^a:[0-9]+:{.*}$|s", $ret[0]['v'])?unserialize( $ret[0]['v']):$ret[0]['v']);
|
||||||
$a->config[$family][$key] = $val;
|
$a->config[$family][$key] = $val;
|
||||||
|
|
||||||
|
// If APC is enabled then store the data there
|
||||||
|
if (function_exists("apc_store"))
|
||||||
|
apc_store($family."|".$key, $val, 600);
|
||||||
|
|
||||||
return $val;
|
return $val;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$a->config[$family][$key] = '!<unset>!';
|
$a->config[$family][$key] = '!<unset>!';
|
||||||
|
|
||||||
|
// If APC is enabled then store the data there
|
||||||
|
if (function_exists("apc_store"))
|
||||||
|
apc_store($family."|".$key, '!<unset>!', 600);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}}
|
}}
|
||||||
|
@ -182,9 +198,14 @@ function get_pconfig($uid,$family, $key, $instore = false) {
|
||||||
if (apc_exists($uid."|".$family."|".$key)) {
|
if (apc_exists($uid."|".$family."|".$key)) {
|
||||||
$val = apc_fetch($uid."|".$family."|".$key);
|
$val = apc_fetch($uid."|".$family."|".$key);
|
||||||
$a->config[$uid][$family][$key] = $val;
|
$a->config[$uid][$family][$key] = $val;
|
||||||
return $val;
|
|
||||||
|
if ($val === '!<unset>!')
|
||||||
|
return false;
|
||||||
|
else
|
||||||
|
return $val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$ret = q("SELECT `v` FROM `pconfig` WHERE `uid` = %d AND `cat` = '%s' AND `k` = '%s' LIMIT 1",
|
$ret = q("SELECT `v` FROM `pconfig` WHERE `uid` = %d AND `cat` = '%s' AND `k` = '%s' LIMIT 1",
|
||||||
intval($uid),
|
intval($uid),
|
||||||
dbesc($family),
|
dbesc($family),
|
||||||
|
@ -194,10 +215,19 @@ function get_pconfig($uid,$family, $key, $instore = false) {
|
||||||
if(count($ret)) {
|
if(count($ret)) {
|
||||||
$val = (preg_match("|^a:[0-9]+:{.*}$|s", $ret[0]['v'])?unserialize( $ret[0]['v']):$ret[0]['v']);
|
$val = (preg_match("|^a:[0-9]+:{.*}$|s", $ret[0]['v'])?unserialize( $ret[0]['v']):$ret[0]['v']);
|
||||||
$a->config[$uid][$family][$key] = $val;
|
$a->config[$uid][$family][$key] = $val;
|
||||||
|
|
||||||
|
// If APC is enabled then store the data there
|
||||||
|
if (function_exists("apc_store"))
|
||||||
|
apc_store($uid."|".$family."|".$key, $val, 600);
|
||||||
|
|
||||||
return $val;
|
return $val;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$a->config[$uid][$family][$key] = '!<unset>!';
|
$a->config[$uid][$family][$key] = '!<unset>!';
|
||||||
|
|
||||||
|
// If APC is enabled then store the data there
|
||||||
|
if (function_exists("apc_store"))
|
||||||
|
apc_store($uid."|".$family."|".$key, '!<unset>!', 600);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}}
|
}}
|
||||||
|
|
|
@ -84,7 +84,8 @@ function network_to_name($s) {
|
||||||
NETWORK_XMPP => t('XMPP/IM'),
|
NETWORK_XMPP => t('XMPP/IM'),
|
||||||
NETWORK_MYSPACE => t('MySpace'),
|
NETWORK_MYSPACE => t('MySpace'),
|
||||||
NETWORK_MAIL2 => t('Email'),
|
NETWORK_MAIL2 => t('Email'),
|
||||||
NETWORK_GPLUS => t('Google+')
|
NETWORK_GPLUS => t('Google+'),
|
||||||
|
NETWORK_PUMPIO => t('pump.io')
|
||||||
);
|
);
|
||||||
|
|
||||||
call_hooks('network_to_name', $nets);
|
call_hooks('network_to_name', $nets);
|
||||||
|
|
|
@ -542,7 +542,7 @@ function delivery_run(&$argv, &$argc){
|
||||||
|
|
||||||
diaspora_send_relay($target_item,$owner,$contact,$public_message);
|
diaspora_send_relay($target_item,$owner,$contact,$public_message);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
elseif(($top_level) && (! $walltowall)) {
|
elseif(($top_level) && (! $walltowall)) {
|
||||||
// currently no workable solution for sending walltowall
|
// currently no workable solution for sending walltowall
|
||||||
logger('delivery: diaspora status: ' . $loc);
|
logger('delivery: diaspora status: ' . $loc);
|
||||||
|
@ -558,6 +558,9 @@ function delivery_run(&$argv, &$argc){
|
||||||
case NETWORK_FACEBOOK :
|
case NETWORK_FACEBOOK :
|
||||||
if(get_config('system','dfrn_only'))
|
if(get_config('system','dfrn_only'))
|
||||||
break;
|
break;
|
||||||
|
case NETWORK_PUMPIO :
|
||||||
|
if(get_config('system','dfrn_only'))
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,6 @@ function expire_run(&$argv, &$argc){
|
||||||
load_config('config');
|
load_config('config');
|
||||||
load_config('system');
|
load_config('system');
|
||||||
|
|
||||||
|
|
||||||
$a->set_baseurl(get_config('system','url'));
|
$a->set_baseurl(get_config('system','url'));
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -881,12 +881,15 @@ function notifier_run(&$argv, &$argc){
|
||||||
case NETWORK_FACEBOOK:
|
case NETWORK_FACEBOOK:
|
||||||
if(get_config('system','dfrn_only'))
|
if(get_config('system','dfrn_only'))
|
||||||
break;
|
break;
|
||||||
|
case NETWORK_PUMPIO:
|
||||||
|
if(get_config('system','dfrn_only'))
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// send additional slaps to mentioned remote tags (@foo@example.com)
|
// send additional slaps to mentioned remote tags (@foo@example.com)
|
||||||
|
|
||||||
if($slap && count($url_recipients) && ($followup || $top_level) && $public_message && (! $expire)) {
|
if($slap && count($url_recipients) && ($followup || $top_level) && $public_message && (! $expire)) {
|
||||||
|
|
|
@ -76,7 +76,7 @@ function onepoll_run(&$argv, &$argc){
|
||||||
|
|
||||||
$contacts = q("SELECT `contact`.* FROM `contact`
|
$contacts = q("SELECT `contact`.* FROM `contact`
|
||||||
WHERE ( `rel` = %d OR `rel` = %d ) AND `poll` != ''
|
WHERE ( `rel` = %d OR `rel` = %d ) AND `poll` != ''
|
||||||
AND NOT `network` IN ( '%s', '%s' )
|
AND NOT `network` IN ( '%s', '%s', '%s' )
|
||||||
AND `contact`.`id` = %d
|
AND `contact`.`id` = %d
|
||||||
AND `self` = 0 AND `contact`.`blocked` = 0 AND `contact`.`readonly` = 0
|
AND `self` = 0 AND `contact`.`blocked` = 0 AND `contact`.`readonly` = 0
|
||||||
AND `contact`.`archive` = 0 LIMIT 1",
|
AND `contact`.`archive` = 0 LIMIT 1",
|
||||||
|
@ -84,6 +84,7 @@ function onepoll_run(&$argv, &$argc){
|
||||||
intval(CONTACT_IS_FRIEND),
|
intval(CONTACT_IS_FRIEND),
|
||||||
dbesc(NETWORK_DIASPORA),
|
dbesc(NETWORK_DIASPORA),
|
||||||
dbesc(NETWORK_FACEBOOK),
|
dbesc(NETWORK_FACEBOOK),
|
||||||
|
dbesc(NETWORK_PUMPIO),
|
||||||
intval($contact_id)
|
intval($contact_id)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -526,6 +527,9 @@ function onepoll_run(&$argv, &$argc){
|
||||||
elseif($contact['network'] === NETWORK_FACEBOOK) {
|
elseif($contact['network'] === NETWORK_FACEBOOK) {
|
||||||
// This is picked up by the Facebook plugin on a cron hook.
|
// This is picked up by the Facebook plugin on a cron hook.
|
||||||
// Ignored here.
|
// Ignored here.
|
||||||
|
} elseif($contact['network'] === NETWORK_PUMPIO) {
|
||||||
|
// This is picked up by the pump.io plugin on a cron hook.
|
||||||
|
// Ignored here.
|
||||||
}
|
}
|
||||||
|
|
||||||
if($xml) {
|
if($xml) {
|
||||||
|
@ -544,7 +548,7 @@ function onepoll_run(&$argv, &$argc){
|
||||||
|
|
||||||
|
|
||||||
// do it twice. Ensures that children of parents which may be later in the stream aren't tossed
|
// do it twice. Ensures that children of parents which may be later in the stream aren't tossed
|
||||||
|
|
||||||
consume_feed($xml,$importer,$contact,$hub,1,2);
|
consume_feed($xml,$importer,$contact,$hub,1,2);
|
||||||
|
|
||||||
$hubmode = 'subscribe';
|
$hubmode = 'subscribe';
|
||||||
|
|
|
@ -173,7 +173,7 @@ function poller_run(&$argv, &$argc){
|
||||||
|
|
||||||
$contacts = q("SELECT `contact`.`id` FROM `contact` LEFT JOIN `user` ON `user`.`uid` = `contact`.`uid`
|
$contacts = q("SELECT `contact`.`id` FROM `contact` LEFT JOIN `user` ON `user`.`uid` = `contact`.`uid`
|
||||||
WHERE ( `rel` = %d OR `rel` = %d ) AND `poll` != ''
|
WHERE ( `rel` = %d OR `rel` = %d ) AND `poll` != ''
|
||||||
AND NOT `network` IN ( '%s', '%s' )
|
AND NOT `network` IN ( '%s', '%s', '%s' )
|
||||||
$sql_extra
|
$sql_extra
|
||||||
AND `self` = 0 AND `contact`.`blocked` = 0 AND `contact`.`readonly` = 0
|
AND `self` = 0 AND `contact`.`blocked` = 0 AND `contact`.`readonly` = 0
|
||||||
AND `contact`.`archive` = 0
|
AND `contact`.`archive` = 0
|
||||||
|
@ -181,7 +181,8 @@ function poller_run(&$argv, &$argc){
|
||||||
intval(CONTACT_IS_SHARING),
|
intval(CONTACT_IS_SHARING),
|
||||||
intval(CONTACT_IS_FRIEND),
|
intval(CONTACT_IS_FRIEND),
|
||||||
dbesc(NETWORK_DIASPORA),
|
dbesc(NETWORK_DIASPORA),
|
||||||
dbesc(NETWORK_FACEBOOK)
|
dbesc(NETWORK_FACEBOOK),
|
||||||
|
dbesc(NETWORK_PUMPIO)
|
||||||
);
|
);
|
||||||
|
|
||||||
if(! count($contacts)) {
|
if(! count($contacts)) {
|
||||||
|
|
Ładowanie…
Reference in New Issue