From 51256ddd667f3cccc71ba7e9317ea0f5e9916ac8 Mon Sep 17 00:00:00 2001 From: Angel Ortega Date: Tue, 13 Nov 2007 13:10:23 +0100 Subject: [PATCH] Artemus story_abstract() also calls special_uris(). --- Gruta/Template/Artemus.pm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Gruta/Template/Artemus.pm b/Gruta/Template/Artemus.pm index ef041ee..5d2905a 100644 --- a/Gruta/Template/Artemus.pm +++ b/Gruta/Template/Artemus.pm @@ -87,17 +87,20 @@ sub _artemus { return $ret; }; - $f{story_body} = sub { + $f{story_abstract} = sub { my $story = $data->story($_[0], $_[1]); - my $ret = $story->get('body'); - $ret = $data->special_uris($ret); + return $data->special_uris($story->get('abstract')); + }; + + $f{story_body} = sub { + my $story = $data->story($_[0], $_[1]); if (not $data->auth()) { $story->touch(); } - return $ret; + return $data->special_uris($story->get('body')); }; $f{story_date} = sub { -- 2.11.4.GIT