wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r17792: LJSUP-7444. need crop text in subject on...

Committer: gprochaev
LJSUP-7444. need crop text in subject on recent post

U   trunk/cgi-bin/LJ/Widget/Browse.pm
Modified: trunk/cgi-bin/LJ/Widget/Browse.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/Browse.pm	2010-11-26 04:43:49 UTC (rev 17791)
+++ trunk/cgi-bin/LJ/Widget/Browse.pm	2010-11-26 05:06:30 UTC (rev 17792)
@@ -239,8 +239,11 @@
             my @tags = $entry->tags;
             my $event = $entry->event_html;
             my ($is_removed_video) = $event =~ s/<iframe.*?>(.*)<\/iframe>/$1/;
+            my $subject = $entry->subject_text;
+            my $trimmed_subj = LJ::html_trim ($subject, 60);
             push @tmpl_posts, {
-                subject         => $entry->subject_text,
+                subject         => $trimmed_subj,
+                is_subject_trimmed => $subject ne $trimmed_subj ? 1 : 0,
                 userpic         => $userpic ? $userpic->url : '',
                 posted_ago      => LJ::TimeUtil->ago_text($secondsold),
                 poster          => $poster ? LJ::ljuser($poster) : '?',

Tags: livejournal, pm, wisest-owl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments