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,