]> git.mxchange.org Git - friendica-addons.git/blobdiff - buffer/buffer.php
Revert "Revert "Move objects to src""
[friendica-addons.git] / buffer / buffer.php
index c9bb93e23eadd78aa84e62639d2bbd85e67d29ab..131574819cdf74d2a3e20d442cf9ec31a8fc98b0 100644 (file)
@@ -247,6 +247,13 @@ function buffer_send(&$a,&$b) {
        if($b['parent'] != $b['id'])
                return;
 
+       // Dont't post if the post doesn't belong to us.
+       // This is a check for forum postings
+       $self = dba::select('contact', array('id'), array('uid' => $b['uid'], 'self' => true), array('limit' => 1));
+       if ($b['contact-id'] != $self['id']) {
+               return;
+       }
+
        // if post comes from buffer don't send it back
        //if($b['app'] == "Buffer")
        //      return;
@@ -295,7 +302,7 @@ function buffer_send(&$a,&$b) {
                                                break;
                                        case 'twitter':
                                                $send = ($b["extid"] != NETWORK_TWITTER);
-                                               $limit = 140;
+                                               $limit = 280;
                                                $markup = false;
                                                $includedlinks = true;
                                                $htmlmode = 8;