Skip to content

Commit

Permalink
Fix URLs for id and hashtag on StatusNet.
Browse files Browse the repository at this point in the history
* twittering-mode.el: fix statusnet URL
(twittering-get-status-url-statusnet): fix id URL
(twittering-get-status-url-statusnet): fix hashtag URL
  • Loading branch information
masutaka authored and cvmat committed Aug 20, 2010
1 parent b3dc8c8 commit 0c6f024
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Expand Up @@ -36,6 +36,10 @@
* twittering-mode.el (twittering-generate-format-table):
Do not use icon images scaled by API unless Twitter.

* twittering-mode.el: fix statusnet URL
(twittering-get-status-url-statusnet): fix id URL
(twittering-get-status-url-statusnet): fix hashtag URL

2010-08-20 Tadashi MATSUO <tad@mymail.twin.jp>

* twittering-mode.el (twittering-edit-post-status): call
Expand Down
4 changes: 2 additions & 2 deletions twittering-mode.el
Expand Up @@ -1844,7 +1844,7 @@ image are displayed."
(defun twittering-get-status-url-statusnet (username &optional id)
"Generate status URL for StatusNet."
(if id
(format "http://%s/%snotice/%s" twittering-web-host twittering-web-path-prefix id)
(format "http://%s/%s/notice/%s" twittering-web-host twittering-web-path-prefix id)
(format "http://%s/%s/%s" twittering-web-host twittering-web-path-prefix username)))

(defun twittering-lookup-get-search-url ()
Expand All @@ -1858,7 +1858,7 @@ image are displayed."

(defun twittering-get-search-url-statusnet (query-string)
(if (string-match "^#\\(.+\\)" query-string)
(format "http://%s/%stag/%s"
(format "http://%s/%s/tag/%s"
twittering-web-host
twittering-web-path-prefix
(twittering-percent-encode (match-string 1 query-string)))
Expand Down

0 comments on commit 0c6f024

Please sign in to comment.