Browse Source

Need to find proper syntax for member URL on iOS

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

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

@ -15,7 +15,7 @@ module SlackMathbot
ios_url = "pixiv://illusts/" + pixiv_url.split('=')[-1] ios_url = "pixiv://illusts/" + pixiv_url.split('=')[-1]
puts ios_url puts ios_url
# Create iOS Member URL
# TODO: Create iOS Member URL, find correct URL scheme
ios_mem_url = "pixiv://member/" + pixiv_url.split("?id=")[-1] ios_mem_url = "pixiv://member/" + pixiv_url.split("?id=")[-1]
puts ios_mem_url puts ios_mem_url
@ -33,8 +33,7 @@ module SlackMathbot
attachments: [ attachments: [
{ {
fallback: title + " - " + pixiv_url, fallback: title + " - " + pixiv_url,
text: "<" + ios_url + "|Open 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,

Loading…
Cancel
Save