mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 07:43:41 +00:00
Twitter: Make incoming posts unlisted
This commit is contained in:
parent
225fbd0677
commit
d14f604049
1 changed files with 2 additions and 2 deletions
|
@ -1668,10 +1668,10 @@ function twitter_createpost(App $a, $uid, $post, array $self, $create_user, $onl
|
||||||
$postarray['app'] = strip_tags($post->source);
|
$postarray['app'] = strip_tags($post->source);
|
||||||
|
|
||||||
if ($post->user->protected) {
|
if ($post->user->protected) {
|
||||||
$postarray['private'] = 1;
|
$postarray['private'] = Item::PRIVATE;
|
||||||
$postarray['allow_cid'] = '<' . $self['id'] . '>';
|
$postarray['allow_cid'] = '<' . $self['id'] . '>';
|
||||||
} else {
|
} else {
|
||||||
$postarray['private'] = 0;
|
$postarray['private'] = Item::UNLISTED;
|
||||||
$postarray['allow_cid'] = '';
|
$postarray['allow_cid'] = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue