Skip to content

Commit

Permalink
inline replies
Browse files Browse the repository at this point in the history
  • Loading branch information
voitto committed Aug 26, 2009
1 parent 83d9f0f commit 417eee5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 5 additions & 2 deletions app/omb/plugins/ping.php
Expand Up @@ -30,8 +30,11 @@ function send_ping( &$model, &$rec ) {
$par = $db->get_record( 'posts',$rec->parent_id );
$tweet = render_comment($rec,$o,$par);
$payload['html'] = $tweet;
$payload['in_reply_to'] = $rec->parent_id;

if ($par->parent_id > 0)
$payload['in_reply_to'] = "#commentcontent-".$rec->parent_id;
else
$payload['in_reply_to'] = "#content-".$rec->parent_id;

} else {

// push a P2 tweet
Expand Down
1 change: 0 additions & 1 deletion db/boot.php
Expand Up @@ -610,7 +610,6 @@

// echo value after single-field Ajax PUT call
after_filter( 'ajax_put_field', 'update_from_post' );
after_filter( 'ajax_put_field', 'insert_from_post' );


// authenticate yourself without OpenID
Expand Down

0 comments on commit 417eee5

Please sign in to comment.