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

[livejournal] r17804: LJSUP-7466. If there is no title of the ...

Committer: gprochaev
LJSUP-7466. If there is no title of the post put "***" instead of title

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 08:23:28 UTC (rev 17803)
+++ trunk/cgi-bin/LJ/Widget/Browse.pm	2010-11-26 08:31:18 UTC (rev 17804)
@@ -242,7 +242,7 @@
             my @tags = $entry->tags;
             my $event = $entry->event_html;
             my ($is_removed_video) = $event =~ s/<iframe.*?>(.*)<\/iframe>/$1/;
-            my $subject = $entry->subject_text;
+            my $subject = $entry->subject_text || '***';
             my $trimmed_subj = LJ::html_trim ($subject, 60);
             push @tmpl_posts, {
                 subject         => $trimmed_subj,
@@ -340,7 +340,7 @@
             my $userpic = $entry->userpic;
             my $poster = $entry->poster;
             push @top_posts, {
-                subject         => $entry->subject_text,
+                subject         => $entry->subject_text || '***',
                 userpic         => $userpic ? $userpic->url : '',
                 updated_ago     => LJ::TimeUtil->ago_text($entry->logtime_unix),
                 comments_count  => $entry->reply_count,

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