mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2009-03-31 05:36 am

[dw-free] Imported tags not properly counted on tag list/tag page

[commit: http://hg.dwscoalition.org/dw-free/rev/0ca538b1c6ee]

http://bugs.dwscoalition.org/show_bug.cgi?id=567

Use display property for tags on import.

Patch by [personal profile] afuna.

Files modified:
  • cgi-bin/DW/Worker/ContentImporter/Local/Tags.pm
--------------------------------------------------------------------------------
diff -r d703a31eac87 -r 0ca538b1c6ee cgi-bin/DW/Worker/ContentImporter/Local/Tags.pm
--- a/cgi-bin/DW/Worker/ContentImporter/Local/Tags.pm	Tue Mar 31 05:33:48 2009 +0000
+++ b/cgi-bin/DW/Worker/ContentImporter/Local/Tags.pm	Tue Mar 31 05:36:18 2009 +0000
@@ -36,7 +36,7 @@ sub merge_tags {
     my ( $class, $u, $tags ) = @_;
 
     foreach my $tag ( @{ $tags || [] } ) {
-        LJ::Tags::create_usertag( $u, $tag->{name}, { ignore_max => 1 } );
+        LJ::Tags::create_usertag( $u, $tag->{name}, { ignore_max => 1, display => $tag->{display} } );
     }
 }
 
--------------------------------------------------------------------------------