aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2020-09-19 00:46:39 -0400
committerKyle Meyer <kyle@kyleam.com>2020-09-19 11:23:29 -0400
commit100073936c421d75f408e297e1d69edaef5afe5e (patch)
tree37117821b7173151f451f64d9b0b1169979b667e
parenta913c5721aeee0feca1309705ac4d5004996e073 (diff)
downloadpiem-100073936c421d75f408e297e1d69edaef5afe5e.tar.gz
Unescape message IDs extracted from URLs
All downstream code expects unescaped message IDs. Message-Id: <20200919044639.26871-3-kyle@kyleam.com>
-rw-r--r--piem-elfeed.el2
-rw-r--r--piem-eww.el2
2 files changed, 2 insertions, 2 deletions
diff --git a/piem-elfeed.el b/piem-elfeed.el
index 24b3108..add7547 100644
--- a/piem-elfeed.el
+++ b/piem-elfeed.el
@@ -45,7 +45,7 @@
(inbox-url (piem-inbox-get :url inbox))
(link (elfeed-entry-link elfeed-show-entry)))
(and (string-match (piem-message-link-re inbox-url) link)
- (match-string 1 link))))
+ (url-unhex-string (match-string 1 url)))))
;;;###autoload
(define-minor-mode piem-elfeed-mode
diff --git a/piem-eww.el b/piem-eww.el
index 9fd34ac..849a3b5 100644
--- a/piem-eww.el
+++ b/piem-eww.el
@@ -44,7 +44,7 @@
(inbox-url (piem-inbox-get :url inbox))
(url (plist-get eww-data :url)))
(and (string-match (piem-message-link-re inbox-url) url)
- (match-string 1 url))))
+ (url-unhex-string (match-string 1 url)))))
;;;###autoload
(define-minor-mode piem-eww-mode