EionRobb / skype4pidgin

Skype Plugin for Pidgin, libpurple and more
https://github.com/EionRobb/skype4pidgin/tree/master/skypeweb#skypeweb-plugin-for-pidgin
624 stars 88 forks source link

cards: "https://go.skype.com/cards.unsupported" #637

Open philfry opened 5 years ago

philfry commented 5 years ago

Hi, when someone with a "real" skype client send a "card" it is shown as

Um diese Karte anzuzeigen, gehe zu: https://go.skype.com/cards.unsupported

("to view this card, go to …"). In web.skype.com the same message is shown as

Um diese Karte anzuzeigen, gehe zu: https://go.skype.com/cards.unsupported<Swift b64="eyJ0eXBlIjoibWVzc2FnZS9jYXJkIiwiYXR0YWNobWVudHMiOlt7ImNvbnRlbnRUeXBlIjoiYXBwbGljYXRpb24vdm5kLm1pY3Jvc29mdC5jYXJkLmZsZXgiLCJjb250ZW50Ijp7InNoYXJlYWJsZSI6dHJ1ZSwic3VidGl0bGUiOiJHZWZ1bmRlbiBhdWYgR2lwaHkuY29tIiwiaW1hZ2VzIjpbeyJhbHQiOiJpIGhhdmUgbm8gaWRlYSBHSUYiLCJ1cmwiOiJodHRwczovL21lZGlhMC5naXBoeS5jb20vbWVkaWEvamtTRDlHVG1ITlJ0NlZhVVhwL2dpcGh5LmdpZj9jaWQ9MTNjMDgzNDI1YzdjZTFiZDY1NmE3MjQ5NTE0NzcxZWQiLCJ0YXAiOnsidHlwZSI6InNob3dJbWFnZSJ9LCJ0eXBlIjoiaW1hZ2UvZ2lmIn1dLCJhc3BlY3QiOiI0ODA6MzYwIiwiZGltZW5zaW9ucyI6eyJ3aWR0aCI6NDgwLCJoZWlnaHQiOjM2MH19fV19"/></URIObject>

decoding the base64 string results in:

{
    "attachments": [
        {
            "content": {
                "aspect": "480:360",
                "dimensions": {
                    "height": 360,
                    "width": 480
                },
                "images": [
                    {
                        "alt": "i have no idea GIF",
                        "tap": {
                            "type": "showImage"
                        },
                        "type": "image/gif",
                        "url": "https://media0.giphy.com/media/jkSD9GTmHNRt6VaUXp/giphy.gif?cid=13c083425c7ce1bd656a7249514771ed"
                    }
                ],
                "shareable": true,
                "subtitle": "Gefunden auf Giphy.com"
            },
            "contentType": "application/vnd.microsoft.card.flex"
        }
    ],
    "type": "message/card"
}

Are there any plans on supporting those kind of messages?

EionRobb commented 5 years ago

What's a card?

philfry commented 5 years ago

I believe it's some kind of new way to display a static picture or a animate gif/webm/whatever. It's not implemented in web.skype.com so you'll probably need the official client to display it. Edit: yup, this "card" shows up when sharing "Bing GIFs", "Pictures", "Microsoft To-Do", "Bing Restaurants" and stuff. It's not related to inserting "media", "contacts" or "location".

Zombie-Ryushu commented 4 years ago

I can confirm this bug. On my system, in both Pidgin, and Spectrum2, these "cards" are trailed by large sloths of base64 encoding.

Zombie-Ryushu commented 4 years ago
A sticker was sent, but this version of Skype doesn't support it. Learn more by visiting https://go.skype.com/you.received.sticker
Zombie-Ryushu commented 4 years ago
To view this card, go to: https://go.skype.com/cards.unsupported<Swift b64="eyJ0eXBlIjoibWVzc2FnZS9jYXJkIiwiYXR0YWNobWVudHMiOlt7ImNvbnRlbnRUeXBlIjoiYXBwbGljYXRpb24vdm5kLm1pY3Jvc29mdC5jYXJkLmZsZXgiLCJjb250ZW50Ijp7InNoYXJlYWJsZSI6dHJ1ZSwic3VidGl0bGUiOiJGb3VuZCBvbiBUZW5vci5jb20iLCJpbWFnZXMiOlt7ImFsdCI6IlRvbWF0byBTYWQgR0lGIiwidXJsIjoiaHR0cHM6Ly9tZWRpYS50ZW5vci5jb20vaW1hZ2VzL2EzMzUzODRkOTZjMmZjODA4MzEzOWMzODVmNzI1ZGI3L3Rlbm9yLmdpZiIsInRhcCI6eyJ0eXBlIjoic2hvd0ltYWdlIn0sInR5cGUiOiJpbWFnZS9naWYiLCJzdGlsbFVybCI6Imh0dHBzOi8vbWVkaWEudGVub3IuY29tL2ltYWdlcy82ZDAyNmExODM1MzkxNGFjMzVkMDNlYTg5YzA2ZTYxYy90ZW5vci5wbmciLCJmcmFtZXMiOjB9XSwiYXNwZWN0IjoiMzIwOjE4MCIsImRpbWVuc2lvbnMiOnsid2lkdGgiOjMyMCwiaGVpZ2h0IjoxODB9fX1dfQ=="/> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/Zombie-Ryushu"><img src="https://avatars.githubusercontent.com/u/7809674?v=4" />Zombie-Ryushu</a> commented <strong> 4 years ago</strong> </div> <div class="markdown-body"> <p><code><URIObject type="SWIFT.1" url_thumbnail="https://urlp.asm.skype.com/v1/url/content?url=https://neu1-urlp.secure.skypeassets.com/static/card-128x128.png">To view this card, go to: https://go.skype.com/cards.unsupported<Title><Swift b64="eyJ0eXBlIjoibWVzc2FnZS9jYXJkIiwiYXR0YWNobWVudHMiOlt7ImNvbnRlbnRUeXBlIjoiYXBwbGljYXRpb24vdm5kLm1pY3Jvc29mdC5jYXJkLmZsZXgiLCJjb250ZW50Ijp7InNoYXJlYWJsZSI6dHJ1ZSwic3VidGl0bGUiOiJGb3VuZCBvbiBUZW5vci5jb20iLCJpbWFnZXMiOlt7ImFsdCI6IlRvbWF0byBTYWQgR0lGIiwidXJsIjoiaHR0cHM6Ly9tZWRpYS50ZW5vci5jb20vaW1hZ2VzL2EzMzUzODRkOTZjMmZjODA4MzEzOWMzODVmNzI1ZGI3L3Rlbm9yLmdpZiIsInRhcCI6eyJ0eXBlIjoic2hvd0ltYWdlIn0sInR5cGUiOiJpbWFnZS9naWYiLCJzdGlsbFVybCI6Imh0dHBzOi8vbWVkaWEudGVub3IuY29tL2ltYWdlcy82ZDAyNmExODM1MzkxNGFjMzVkMDNlYTg5YzA2ZTYxYy90ZW5vci5wbmciLCJmcmFtZXMiOjB9XSwiYXNwZWN0IjoiMzIwOjE4MCIsImRpbWVuc2lvbnMiOnsid2lkdGgiOjMyMCwiaGVpZ2h0IjoxODB9fX1dfQ=="/></code></p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/EionRobb"><img src="https://avatars.githubusercontent.com/u/1063865?v=4" />EionRobb</a> commented <strong> 4 years ago</strong> </div> <div class="markdown-body"> <p>The base64decode of that one gives</p> <pre><code>{ "type": "message/card", "attachments": [ { "contentType": "application/vnd.microsoft.card.flex", "content": { "shareable": true, "subtitle": "Found on Tenor.com", "images": [ { "alt": "Tomato Sad GIF", "url": "https://media.tenor.com/images/a335384d96c2fc8083139c385f725db7/tenor.gif", "tap": { "type": "showImage" }, "type": "image/gif", "stillUrl": "https://media.tenor.com/images/6d026a18353914ac35d03ea89c06e61c/tenor.png", "frames": 0 } ], "aspect": "320:180", "dimensions": { "width": 320, "height": 180 } } } ] }</code></pre> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>