From fdd340a8b2da2eb31bebdc94b02c48429b571403 Mon Sep 17 00:00:00 2001 From: Ryan Hammett Date: Sat, 23 Jan 2016 20:04:18 -0500 Subject: [PATCH] Need to find proper syntax for member URL on iOS --- slack-pixiv/commands/pixiv.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/slack-pixiv/commands/pixiv.rb b/slack-pixiv/commands/pixiv.rb index 04fd3b0..8060210 100644 --- a/slack-pixiv/commands/pixiv.rb +++ b/slack-pixiv/commands/pixiv.rb @@ -15,7 +15,7 @@ module SlackMathbot ios_url = "pixiv://illusts/" + pixiv_url.split('=')[-1] puts ios_url - # Create iOS Member URL + # TODO: Create iOS Member URL, find correct URL scheme ios_mem_url = "pixiv://member/" + pixiv_url.split("?id=")[-1] puts ios_mem_url @@ -33,8 +33,7 @@ module SlackMathbot attachments: [ { fallback: title + " - " + pixiv_url, - text: "<" + ios_url + "|Open in App>" + - "<" + ios_mem_url + "|Open Member in App>", + text: "<" + ios_url + "|Open in App>", title: title, title_link: pixiv_url, image_url: image_url,