Add patches to fix identi.ca tags and twitter searches
authorJulien Valroff <julien@kirya.net>
Sun, 23 May 2010 13:23:01 +0000 (15:23 +0200)
committerJulien Valroff <julien@kirya.net>
Sun, 23 May 2010 13:23:01 +0000 (15:23 +0200)
debian/patches/003_identica-tags.diff [new file with mode: 0644]
debian/patches/004_fix-search-regex.diff [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/003_identica-tags.diff b/debian/patches/003_identica-tags.diff
new file mode 100644 (file)
index 0000000..c152c97
--- /dev/null
@@ -0,0 +1,17 @@
+Description: Fix url to identi.ca tags
+Author: Julien Valroff <julien@kirya.net>
+Bug: http://code.google.com/p/pino-twitter/issues/detail?id=141
+
+Index: pino/src/template.vala
+===================================================================
+--- pino.orig/src/template.vala        2010-05-23 15:17:47.000000000 +0200
++++ pino/src/template.vala     2010-05-23 15:18:05.000000000 +0200
+@@ -91,7 +91,7 @@
+                               
+                               case "identi.ca":
+                                       status_url = "http://identi.ca/notice/%s";
+-                                      search_url = "http://identi.ca/search/notice?q=";
++                                      search_url = "http://identi.ca/tag/";
+                                       nick_url = "http://identi.ca/";
+                                       break;
+                       }
diff --git a/debian/patches/004_fix-search-regex.diff b/debian/patches/004_fix-search-regex.diff
new file mode 100644 (file)
index 0000000..6774c87
--- /dev/null
@@ -0,0 +1,17 @@
+Description: Fix regex for search/tags
+Author: Julien Valroff <julien@kirya.net>
+Bug: http://code.google.com/p/pino-twitter/issues/detail?id=141
+
+Index: pino/src/template.vala
+===================================================================
+--- pino.orig/src/template.vala        2010-05-23 15:20:25.000000000 +0200
++++ pino/src/template.vala     2010-05-23 15:20:53.000000000 +0200
+@@ -60,7 +60,7 @@
+               
+               //compile regex
+               nicks = new Regex("(^|\\s)@([A-Za-z0-9_]+)");
+-              tags = new Regex("((^|\\s)\\#[A-Za-z0-9_\\p{Latin}\\p{Greek}]+)");
++              tags = new Regex("(^|\\s)#([A-Za-z0-9_\\p{Latin}\\p{Greek}]+)");
+               groups = new Regex("(^|\\s)!([A-Za-z0-9_]+)"); //for identi.ca groups
+               urls = new Regex("((http|https|ftp)://([\\S]+))"); //need something better
+               
index db723ef..6955fbf 100644 (file)
@@ -1,2 +1,4 @@
 001_sec-accounts-file.diff
 002_fix-parser-cleanup.diff
+003_identica-tags.diff
+004_fix-search-regex.diff