]> git.mxchange.org Git - friendica-addons.git/commitdiff
Twitter: Make incoming posts unlisted
authorMichael <heluecht@pirati.ca>
Mon, 24 May 2021 06:00:23 +0000 (06:00 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 24 May 2021 06:00:23 +0000 (06:00 +0000)
twitter/twitter.php

index 41f865e8e4fdcf57c64e22b3d6c16f6a0dee23cc..bac4871b61e7857aceafeb829286ee80a7d3ce54 100644 (file)
@@ -1668,10 +1668,10 @@ function twitter_createpost(App $a, $uid, $post, array $self, $create_user, $onl
        $postarray['app'] = strip_tags($post->source);
 
        if ($post->user->protected) {
-               $postarray['private'] = 1;
+               $postarray['private'] = Item::PRIVATE;
                $postarray['allow_cid'] = '<' . $self['id'] . '>';
        } else {
-               $postarray['private'] = 0;
+               $postarray['private'] = Item::UNLISTED;
                $postarray['allow_cid'] = '';
        }