From: friendica Date: Tue, 3 Apr 2012 23:30:28 +0000 (-0700) Subject: Merge https://github.com/annando/friendica-addons into apull X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=19b264a20cf384d9418061eb87b247090fb4d4a8;p=friendica-addons.git Merge https://github.com/annando/friendica-addons into apull Conflicts: facebook/facebook.php --- 19b264a20cf384d9418061eb87b247090fb4d4a8 diff --cc facebook.tgz index 1d1919d2,1d1919d2..5853b916 Binary files differ diff --cc facebook/facebook.php index 5ffb0a22,58ce025b..1849cef3 --- a/facebook/facebook.php +++ b/facebook/facebook.php @@@ -49,13 -50,15 +49,17 @@@ /** TODO * - Implement a method for the administrator to delete all configuration data the plugin has created, * e.g. the app_access_token - * - 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); define('FACEBOOK_SESSION_ERR_NOTIFICATION_INTERVAL', 259200); // 3 days +define('FACEBOOK_DEFAULT_POLL_INTERVAL', 60); // given in minutes +define('FACEBOOK_MIN_POLL_INTERVAL', 5); + + function facebook_install() { register_hook('post_local', 'addon/facebook/facebook.php', 'facebook_post_local'); register_hook('notifier_normal', 'addon/facebook/facebook.php', 'facebook_post_hook'); diff --cc nsfw.tgz index b7caadbd,b7caadbd..6897cb89 Binary files differ diff --cc wppost.tgz index 22194335,22194335..b07bf6e0 Binary files differ