diff pidgin-twitter.h @ 203:6c6fe6375ce4

revised identi.ca tag support.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Tue, 12 Aug 2008 18:01:36 +0900
parents 67d8eaba446d
children bc1448e72b1b
line wrap: on
line diff
--- a/pidgin-twitter.h	Tue Aug 12 17:26:40 2008 +0900
+++ b/pidgin-twitter.h	Tue Aug 12 18:01:36 2008 +0900
@@ -33,10 +33,11 @@
     USER,
     USER_FIRST_LINE,
     USER_FORMATTED,
-    CHANNEL,
+    CHANNEL_WASSR,
     IMAGE_TWITTER,
     IMAGE_WASSR,
-    IMAGE_IDENTICA
+    IMAGE_IDENTICA,
+    TAG_IDENTICA
 };
 
 /* service id */
@@ -129,6 +130,8 @@
 #define SENDER_FORMAT_IDENTICA  "%s<a href='http://identi.ca/%s'>%s</a>: "
 #define CHANNEL_FORMAT_WASSR    "%s<a href='http://wassr.jp/channel/%s'>%s</a> "
 #define CHANNEL_FORMAT_IDENTICA "%s<a href='http://identi.ca/tag/%s'>%s</a> "
+#define TAG_FORMAT_IDENTICA     "#<a href='http://identi.ca/tag/%s'>%s</a>"
+
 #define DEFAULT_LIST            "(list of users: separated with ' ,:;')"
 #define OOPS_MESSAGE            "<body>Oops! Your update was over 140 characters. We sent the short version to your friends (they can view the entire update on the web).<BR></body>"
 #define EMPTY                   ""
@@ -145,6 +148,8 @@
 #define P_IMAGE_TWITTER     "<a href=\"/account/profile_image/.+?\"><img .+? id=\"profile-image\".*src=\"(http://.+)\" .+?/>"
 #define P_IMAGE_WASSR       "<div class=\"image\"><a href=\".+\"><img src=\"(.+)\" width=\".+?\" /></a></div>"
 #define P_IMAGE_IDENTICA    "<img src=\"(http://avatar.identi.ca/[A-Za-z0-9-.]+)\" class=\"avatar profile\" width=\"96\" height=\"96\" alt=\"[A-Za-z0-0_]+\"/>"
+#define P_TAG_IDENTICA      "#([A-Za-z0-9]+)"
+
 
 /* twitter API specific macros */
 #define TWITTER_BASE_URL "http://twitter.com"