mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 11:43:42 +00:00
Merge pull request #235 from annando/1501-fbpost-empty-post
fbpost: Additional check for empty posts.
This commit is contained in:
commit
8101aa1380
1 changed files with 7 additions and 0 deletions
|
@ -987,6 +987,7 @@ function fbpost_fetchwall($a, $uid) {
|
|||
require_once("include/network.php");
|
||||
require_once("include/items.php");
|
||||
require_once("mod/item.php");
|
||||
require_once("include/bbcode.php");
|
||||
|
||||
$access_token = get_pconfig($uid,'facebook','access_token');
|
||||
$post_to_page = get_pconfig($uid,'facebook','post_to_page');
|
||||
|
@ -1156,6 +1157,12 @@ function fbpost_fetchwall($a, $uid) {
|
|||
continue;
|
||||
}
|
||||
|
||||
if(trim(strip_tags(bbcode($_REQUEST["body"], false, false))) == '') {
|
||||
logger('facebook: empty body 4 '.$item->id.' '.print_r($item, true));
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
//print_r($_REQUEST);
|
||||
logger('facebook: posting for user '.$uid);
|
||||
item_post($a);
|
||||
|
|
Loading…
Reference in a new issue