Permalink
Browse files

explicitly set comment type

  • Loading branch information...
1 parent e3c3c48 commit 9b5253131249f423869bfbb4943c5ec2afc4c69a @alexkingorg alexkingorg committed Apr 15, 2012
Showing with 5 additions and 1 deletion.
  1. +4 −1 lib/social/controller/import.php
  2. +1 −0 lib/social/service/twitter.php
@@ -17,7 +17,10 @@ public function action_from_url() {
$service = $this->social->service('twitter');
if ($service !== false) {
- $response = $service->import_tweet_by_url($this->request->query('post_id'), $this->request->query('url'));
+ $response = $service->import_tweet_by_url(
+ $this->request->query('post_id'),
+ $this->request->query('url')
+ );
if ($response !== true) {
echo $response;
exit;
@@ -383,6 +383,7 @@ public function import_tweet_by_url($post_id, $url) {
'profile_image_url' => $response->user->profile_image_url,
'in_reply_to_status_id' => $response->in_reply_to_status_id,
'raw' => $response,
+ 'comment_type' => 'social-'.$this->_key,
);
$this->save_aggregated_comments($post, true);

0 comments on commit 9b52531

Please sign in to comment.