From eefaeae76dcfbd551810ce90f835a49434502ee1 Mon Sep 17 00:00:00 2001 From: Caleb Jones Date: Thu, 8 Mar 2018 11:01:20 -0500 Subject: [PATCH] Use screen_name instead of user_id MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Example: I will be using @SpaceLaunchNow (user_id= 841696172259606528) as the example account. The code as is first tries the URI - if a package is not available to handle the twitter:// URI is available then it falls back to the web URL. As is the URI works ONLY with the user_id - however the web url ONLY works with the screen name. Example A - URI doesn’t work but weblink does: twitter://user?user_id= SpaceLaunchNow https://twitter.com/SpaceLaunchNow Example B - URI works but weblink doesnt: twitter://user?user_id=841696172259606528 https://twitter.com/841696172259606528 The obvious solution is to use just the screen_name or just the user_id for the URI and fallback link. From what I can see the web url only accepts screen names so changing the URI to screen_name makes more sense. --- library/src/main/res/values/consts.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/src/main/res/values/consts.xml b/library/src/main/res/values/consts.xml index 8b3d0bf..ee9d557 100644 --- a/library/src/main/res/values/consts.xml +++ b/library/src/main/res/values/consts.xml @@ -15,7 +15,7 @@ com.facebook.katana https://twitter.com/%s - twitter://user?user_id=%s + twitter://user?screen_name=%s com.twitter.android https://plus.google.com/%s