Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed summary / description

  • Loading branch information...
commit 0f0b6132175eb0207c747aa39be8d24f15323d98 1 parent bd103d4
@katzgrau katzgrau authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 axilent.php
View
9 axilent.php
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.