Committer: afedorov
LJSUP-13431: Antispam for edited entries in the communitiesU trunk/htdocs/community/moderate.bml U trunk/htdocs/community/moderate.bml.text
Modified: trunk/htdocs/community/moderate.bml =================================================================== --- trunk/htdocs/community/moderate.bml 2012-09-27 11:48:48 UTC (rev 22992) +++ trunk/htdocs/community/moderate.bml 2012-09-27 12:24:33 UTC (rev 22993) @@ -391,6 +391,7 @@ LJ::load_userids_multiple([ map { $_->{'posterid'}, \$users{$_->{'posterid'}} } @entries ]); foreach (sort { $a->{'logtime'} lt $b->{'logtime'} } @entries) { my $is_adult = 0; + my $is_edited = 0; my $frozen = $dbcr->selectrow_array("SELECT request_stor FROM modblob WHERE journalid=? AND modid=?", undef, $c->{'userid'}, $_->{'modid'}); if ($frozen) { @@ -400,6 +401,7 @@ ? 1 : 0; $is_adult = 0 if $req->{prop_adult_content} eq 'none'; + $is_edited = 1 if $req->{itemid}; } my $link = "/community/moderate.bml?authas=$comm&modid=" . $_->{'modid'}; my $subject = $_->{'subject'} ? LJ::eall($_->{'subject'}) : "<i>[No Subject]</i>"; @@ -411,7 +413,9 @@ "<td>\n" . BML::ml('Actionlink', { 'link'=>"<a href='$link'>$ML{'.brlist.view'}</a>" - }) . "</td></tr>\n"; + }) . "</td>" . + "<td>" . ($is_edited ? BML::ml('.is_edited_entry') : ' ') . "</td>" . + "</tr>\n"; } $ret .= "</table>"; } Modified: trunk/htdocs/community/moderate.bml.text =================================================================== --- trunk/htdocs/community/moderate.bml.text 2012-09-27 11:48:48 UTC (rev 22992) +++ trunk/htdocs/community/moderate.bml.text 2012-09-27 12:24:33 UTC (rev 22993) @@ -42,6 +42,8 @@ .error.notfound=Community account not found. +.is_edited_entry=This entry has been successfully posted and then changed. + .manage=Manage communities .moderate=Moderate this community