Also allow to get own information & timeline when clicking on its own avatar
[debian/pino.git] / debian / patches / 005_allow-current-user-info.diff
1 Description: Allows current user to display her own information & timeline
2 Author: Julien Valroff <julien@kirya.net>
3 Bug: http://code.google.com/p/pino-twitter/issues/detail?id=268
4 Forwarded: yes
5
6 Index: pino/src/user_info_list.vala
7 ===================================================================
8 --- pino.orig/src/user_info_list.vala   2010-05-23 19:46:26.000000000 +0200
9 +++ pino/src/user_info_list.vala        2010-05-23 22:16:11.000000000 +0200
10 @@ -167,9 +167,6 @@
11         
12         /* get user full info and his timeline */
13         public void show_user(string screen_name) {
14 -               if(accounts.get_current_account().login == screen_name)
15 -                       return;
16 -               
17                 act.activate();
18                 
19                 if(full_status != null && full_status.user_screen_name == screen_name)
20 Index: pino/templates/status_me.tpl
21 ===================================================================
22 --- pino.orig/templates/status_me.tpl   2010-05-23 22:16:20.000000000 +0200
23 +++ pino/templates/status_me.tpl        2010-05-23 22:16:44.000000000 +0200
24 @@ -1,5 +1,5 @@
25  <div class="status">
26 -       <div class="avatar_me" style="background-image:url('{{avatar}}');"></div>
27 +       <a href="userinfo://{{screen_name}}"><div class="avatar_me" style="background-image:url('{{avatar}}');"></div></a>
28         <div class="content_{{me}}" id="{{id}}">
29                 <div class="header">
30                         <span class="date">{{time}}</span>