|
@ -16,7 +16,7 @@ module SlackMathbot |
|
|
puts ios_url |
|
|
puts ios_url |
|
|
|
|
|
|
|
|
# Create iOS Member URL |
|
|
# Create iOS Member URL |
|
|
ios_mem_url = "pixiv://member/" + pixiv_url.split('=')[-2] |
|
|
|
|
|
|
|
|
ios_mem_url = "pixiv://member/" + pixiv_url.split('?')[-1] |
|
|
puts ios_mem_url |
|
|
puts ios_mem_url |
|
|
|
|
|
|
|
|
# Scrape page title |
|
|
# Scrape page title |
|
@ -33,7 +33,7 @@ module SlackMathbot |
|
|
attachments: [ |
|
|
attachments: [ |
|
|
{ |
|
|
{ |
|
|
fallback: title + " - " + pixiv_url, |
|
|
fallback: title + " - " + pixiv_url, |
|
|
text: "<" + ios_url + "|Open Illustration in App > <" + ios_mem_url + "|Open Member in App>", |
|
|
|
|
|
|
|
|
text: "<" + ios_url + "|Open in App>", |
|
|
title: title, |
|
|
title: title, |
|
|
title_link: pixiv_url, |
|
|
title_link: pixiv_url, |
|
|
image_url: image_url, |
|
|
image_url: image_url, |
|
|