2006-11-09 OHASHI Akira <bg66@koka-in.org>
* mixi.el (mixi-make-friend-from-url): Support my object.
+ (mixi-make-object-from-url): Ditto.
2006-11-08 OHASHI Akira <bg66@koka-in.org>
(defun mixi-make-object-from-url (url)
"Return a mixi object from URL."
- (when (string-match mixi-object-url-regexp url)
- (let ((name (match-string 2 url)))
- (when (string= name "bbs")
- (setq name "topic"))
- (let ((func (intern (concat mixi-object-prefix "make-" name
- "-from-url"))))
- (funcall func url)))))
+ (if (string-match mixi-object-url-regexp url)
+ (let ((name (match-string 2 url)))
+ (when (string= name "bbs")
+ (setq name "topic"))
+ (let ((func (intern (concat mixi-object-prefix "make-" name
+ "-from-url"))))
+ (funcall func url)))
+ (when (string-match "/home\\.pl" url)
+ (mixi-make-friend-from-url url))))
;; Friend object.
(defvar mixi-friend-cache (make-hash-table :test 'equal))