From dc58574c0f9c40e427d54bbe68125b4b35497ad9 Mon Sep 17 00:00:00 2001 From: Raymond Pasco Date: Thu, 14 Apr 2016 16:18:24 -0400 Subject: [PATCH] Fix type failures in lib/twitter.hoon The type failures were introduced by the parent merge. --- lib/interpolate.hoon | 1 - lib/twitter.hoon | 11 ++++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/interpolate.hoon b/lib/interpolate.hoon index a5a28bebf5..595a161a06 100644 --- a/lib/interpolate.hoon +++ b/lib/interpolate.hoon @@ -6,7 +6,6 @@ :: :::: ~fyr :: -=< into-url |% ++ parse-url |= a/$@(cord:purl purl) ^- purl diff --git a/lib/twitter.hoon b/lib/twitter.hoon index 5194bdc7d2..64b043590e 100644 --- a/lib/twitter.hoon +++ b/lib/twitter.hoon @@ -51,11 +51,16 @@ :: ++ user-url |= a/scr ^- purf - (url:interpolate "https://twitter.com/:scr" scr+a ~) + :_ ~ + %^ into-url:interpolate 'https://twitter.com/:scr' + ~ + ~[scr+a] :: ++ post-url - |= {a/scr b/tid} ^- purf - %+ url:interpolate "https://twitter.com/:scr/status/:tid" + |= {a/scr b/tid} ^- purf + :_ ~ + %^ into-url:interpolate 'https://twitter.com/:scr/status/:tid' + ~ ~[scr+a tid+(tid:print b)] -- ++ parse :: json reparsers