Skip to content

Commit

Permalink
Fixed summary / description
Browse files Browse the repository at this point in the history
  • Loading branch information
katzgrau committed Apr 5, 2012
1 parent bd103d4 commit 0f0b613
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions axilent.php
Expand Up @@ -205,10 +205,11 @@ public function saveCallback($postId)
if(!$content_key) $content_key = false;

$content = array (
$axilent_content_field => $post->post_content,
$axilent_title_field => $post->post_title,
$axilent_link_field => get_permalink($postId)
# TODO: Description/Summary?
$axilent_content_field => $post->post_content,
$axilent_title_field => $post->post_title,
$axilent_link_field => get_permalink($postId),
# And snag the first 3 sentences
$axilent_description_field => implode('. ', array_slice(explode('. ', $post->post_content),0, 3))
);

$content_key = self::getAxilentClient()->postContent($content, $content_key);
Expand Down

0 comments on commit 0f0b613

Please sign in to comment.