Browse Source

Still testing split

master
Ryan Hammett 8 years ago
parent
commit
500d10dec3
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      slack-pixiv/commands/pixiv.rb

+ 3
- 2
slack-pixiv/commands/pixiv.rb View File

@ -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,

Loading…
Cancel
Save