Talk.ai switch to /t/ and add to try

This commit is contained in:
Thaddee Tyl 2014-12-23 23:15:23 +01:00
parent 38e16dce85
commit bcc68732b0
2 changed files with 6 additions and 3 deletions

View File

@ -2829,10 +2829,9 @@ cache(function(data, match, sendBadge, request) {
}));
// Talk integration
camp.route(/^\/talk\/([^\/]+)\.(svg|png|gif|jpg|json)$/,
camp.route(/^\/talk\/t\/([^\/]+)\.(svg|png|gif|jpg|json)$/,
cache(function(data, match, sendBadge, request) {
var roomHash = match[1];
var roomHash = match[1]; // eg, 9c81ff703b
var format = match[2];
var url = 'https://guest.talk.ai/api/rooms/' + roomHash;
var badgeData = getBadgeData('talk', data);

View File

@ -446,6 +446,10 @@ When that is implemented, change the placeholder to 'search / project URL'
<td><img src='/libscore/s/jQuery.svg' alt=''/></td>
<td><code>https://img.shields.io/libscore/c/jQuery.svg</code></td>
</tr>
<tr><th> Talk.ai: </th>
<td><img src='/talk/t/9c81ff703b.svg' alt=''/></td>
<td><code>https://img.shields.io/talk/t/9c81ff703b.svg</code></td>
</tr>
</tbody></table>
<h2> Your Badge </h2>