Don't store the twitter protocol content by default

pull/624/head
Michael 2018-06-17 06:26:22 +00:00
parent b41bb3adfb
commit ef0a2f6f8d
1 changed files with 2 additions and 2 deletions

View File

@ -800,7 +800,7 @@ function twitter_do_mirrorpost(App $a, $uid, $post)
$datarray["profile_uid"] = $uid;
$datarray["extid"] = NETWORK_TWITTER;
$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"] = "";
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['wall'] = 0;
$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
$r = q("SELECT * FROM `item` WHERE `extid` = '%s' AND `uid` = %d LIMIT 1",