Merge pull request #1124 from annando/twitter-unlisted

Twitter: Make incoming posts unlisted
pull/1125/head
Tobias Diekershoff 2021-05-24 08:06:36 +02:00 committed by GitHub
commit 8764f5205a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View 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'] = '';
}