mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 11:03:48 +00:00
Maximum limit for facebook is now max higher than 400.
This commit is contained in:
parent
e688a2608a
commit
5e9405e9dc
1 changed files with 6 additions and 2 deletions
|
@ -53,7 +53,10 @@
|
|||
* - Implement a configuration option to set the polling interval system-wide
|
||||
*/
|
||||
|
||||
define('FACEBOOK_MAXPOSTLEN', 420);
|
||||
// Size of maximum post length increased
|
||||
// see http://www.facebook.com/schrep/posts/203969696349811
|
||||
// define('FACEBOOK_MAXPOSTLEN', 420);
|
||||
define('FACEBOOK_MAXPOSTLEN', 63206);
|
||||
|
||||
|
||||
function facebook_install() {
|
||||
|
@ -891,7 +894,8 @@ function facebook_post_hook(&$a,&$b) {
|
|||
$msg = substr($msg, 0, FACEBOOK_MAXPOSTLEN - strlen($shortlink) - 4);
|
||||
$msg .= '... ' . $shortlink;
|
||||
}
|
||||
if(! strlen($msg))
|
||||
|
||||
if(!strlen($msg) and !strlen($link) and !strlen($image))
|
||||
return;
|
||||
|
||||
logger('Facebook post: msg=' . $msg, LOGGER_DATA);
|
||||
|
|
Loading…
Reference in a new issue