FIX: allow pasting links into title field that are longer than the max title length

This commit is contained in:
Neil Lalonde
2017-05-18 12:32:35 -04:00
parent 29755be139
commit dbb814ec6a
4 changed files with 22 additions and 3 deletions

View File

@ -335,7 +335,7 @@ export default function() {
this.delete('/admin/badges/:id', success);
this.get('/onebox', request => {
if (request.queryParams.url === 'http://www.example.com/has-title.html') {
if (request.queryParams.url.startsWith('http://www.example.com/has-title')) {
return [
200,
{"Content-Type": "application/html"},