[Affelio-cvs 145] CVS update: affelio/apps/Mixi

Back to archive index

Tadashi Okoshi slash****@users*****
2005年 6月 25日 (土) 20:42:49 JST


Index: affelio/apps/Mixi/index.cgi
diff -u affelio/apps/Mixi/index.cgi:1.4 affelio/apps/Mixi/index.cgi:1.5
--- affelio/apps/Mixi/index.cgi:1.4	Mon Jun 20 16:50:51 2005
+++ affelio/apps/Mixi/index.cgi	Sat Jun 25 20:42:48 2005
@@ -54,6 +54,8 @@
 ###########################################################################
 my $userinfo = read_config($afap);
 
+my $visitor_type = $afap->get_visitor_info("type");
+
 
 ###########################################################################
 #Retrieve Mixi HTML
@@ -101,9 +103,18 @@
 $num_friends = @friends;
 for(my $i=0; $i < $num_friends; $i++){
     $friends[$i]->{subject} = 
-	Jcode->new( $friends[$i]->{subject} )->utf8
+	Jcode->new( $friends[$i]->{subject} )->utf8;
+
+    if($visitor_type eq "self"){
+	$friends[$i]->{visitor_type} = "self";
+    }else{
+	$friends[$i]->{visitor_type} = "";
+    }
 } 
 
+
+
+
 my $next_message="";
 my $next_link="";
 my $next = $mixi->parse_list_friend_next( $response );


Affelio-cvs メーリングリストの案内
Back to archive index