From 500d10dec3142fe2aa51eae5038658a4914717d2 Mon Sep 17 00:00:00 2001 From: Ryan Hammett Date: Sat, 23 Jan 2016 19:44:05 -0500 Subject: [PATCH] Still testing split --- slack-pixiv/commands/pixiv.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/slack-pixiv/commands/pixiv.rb b/slack-pixiv/commands/pixiv.rb index fa38536..ad8cbee 100644 --- a/slack-pixiv/commands/pixiv.rb +++ b/slack-pixiv/commands/pixiv.rb @@ -16,7 +16,7 @@ module SlackMathbot puts ios_url # Create iOS Member URL - ios_mem_url = "pixiv://member/" + pixiv_url.split('?')[-1] + ios_mem_url = "pixiv://member/" + pixiv_url.split("?id=")[-1] puts ios_mem_url # Scrape page title @@ -33,7 +33,8 @@ module SlackMathbot attachments: [ { fallback: title + " - " + pixiv_url, - text: "<" + ios_url + "|Open in App>", + text: "<" + ios_url + "|Open in App>" + "<" + ios_mem_url + "|Open Member in App>", title: title, title_link: pixiv_url, image_url: image_url,