mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-25 11:43:40 +00:00
Don't store the twitter protocol content by default
This commit is contained in:
parent
b41bb3adfb
commit
ef0a2f6f8d
1 changed files with 2 additions and 2 deletions
|
@ -800,7 +800,7 @@ function twitter_do_mirrorpost(App $a, $uid, $post)
|
||||||
$datarray["profile_uid"] = $uid;
|
$datarray["profile_uid"] = $uid;
|
||||||
$datarray["extid"] = NETWORK_TWITTER;
|
$datarray["extid"] = NETWORK_TWITTER;
|
||||||
$datarray['message_id'] = Item::newURI($uid, NETWORK_TWITTER . ":" . $post->id);
|
$datarray['message_id'] = Item::newURI($uid, NETWORK_TWITTER . ":" . $post->id);
|
||||||
$datarray['object'] = json_encode($post);
|
// $datarray['object'] = json_encode($post); // Activate for debugging
|
||||||
$datarray["title"] = "";
|
$datarray["title"] = "";
|
||||||
|
|
||||||
if (is_object($post->retweeted_status)) {
|
if (is_object($post->retweeted_status)) {
|
||||||
|
@ -1319,7 +1319,7 @@ function twitter_createpost(App $a, $uid, $post, $self, $create_user, $only_exis
|
||||||
$postarray['uid'] = $uid;
|
$postarray['uid'] = $uid;
|
||||||
$postarray['wall'] = 0;
|
$postarray['wall'] = 0;
|
||||||
$postarray['uri'] = "twitter::" . $post->id_str;
|
$postarray['uri'] = "twitter::" . $post->id_str;
|
||||||
$postarray['object'] = json_encode($post);
|
// $postarray['object'] = json_encode($post); // Activate for debugging
|
||||||
|
|
||||||
// Don't import our own comments
|
// Don't import our own comments
|
||||||
$r = q("SELECT * FROM `item` WHERE `extid` = '%s' AND `uid` = %d LIMIT 1",
|
$r = q("SELECT * FROM `item` WHERE `extid` = '%s' AND `uid` = %d LIMIT 1",
|
||||||
|
|
Loading…
Reference in a new issue