|
@ -12,7 +12,7 @@ module SlackMathbot |
|
|
puts pixiv_url |
|
|
puts pixiv_url |
|
|
|
|
|
|
|
|
# Create iOS URL |
|
|
# Create iOS URL |
|
|
ios_url = "pixiv://illusts" + pixiv_url.split('=')[-1] |
|
|
|
|
|
|
|
|
ios_url = "pixiv://illusts/" + pixiv_url.split('=')[-1] |
|
|
puts ios_url |
|
|
puts ios_url |
|
|
|
|
|
|
|
|
# Scrape page title |
|
|
# Scrape page title |
|
@ -29,7 +29,7 @@ module SlackMathbot |
|
|
attachments: [ |
|
|
attachments: [ |
|
|
{ |
|
|
{ |
|
|
fallback: title + " - " + pixiv_url, |
|
|
fallback: title + " - " + pixiv_url, |
|
|
text: "<" + ios_url + "/|iOSTest", |
|
|
|
|
|
|
|
|
text: "<" + ios_url + "|iOSTest", |
|
|
title: title, |
|
|
title: title, |
|
|
title_link: pixiv_url, |
|
|
title_link: pixiv_url, |
|
|
image_url: image_url, |
|
|
image_url: image_url, |
|
|