From 0a208936c19bd15c04a355ae6045d5bede113c52 Mon Sep 17 00:00:00 2001 From: Ryan Hammett Date: Sun, 17 Jan 2016 23:50:29 -0500 Subject: [PATCH] Fixed / --- slack-pixiv/commands/pixiv.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slack-pixiv/commands/pixiv.rb b/slack-pixiv/commands/pixiv.rb index 2c59e83..7e4657e 100644 --- a/slack-pixiv/commands/pixiv.rb +++ b/slack-pixiv/commands/pixiv.rb @@ -12,7 +12,7 @@ module SlackMathbot puts pixiv_url # Create iOS URL - ios_url = "pixiv://illusts" + pixiv_url.split('=')[-1] + ios_url = "pixiv://illusts/" + pixiv_url.split('=')[-1] puts ios_url # Scrape page title @@ -29,7 +29,7 @@ module SlackMathbot attachments: [ { fallback: title + " - " + pixiv_url, - text: "<" + ios_url + "/|iOSTest", + text: "<" + ios_url + "|iOSTest", title: title, title_link: pixiv_url, image_url: image_url,