]> git.mxchange.org Git - friendica-addons.git/blobdiff - tumblr/tumblr.php
Merge pull request #475 from MrPetovan/task/4041-fix-register
[friendica-addons.git] / tumblr / tumblr.php
index 0a22d143a6ca25baade190ceb743ac03bfb1458d..77d98aca704493fa05dbf5ba28627f018a2c0866 100644 (file)
@@ -325,6 +325,13 @@ function tumblr_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;
+       }
+
        $oauth_token = PConfig::get($b['uid'], "tumblr", "oauth_token");
        $oauth_token_secret = PConfig::get($b['uid'], "tumblr", "oauth_token_secret");
        $page = PConfig::get($b['uid'], "tumblr", "page");