mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
FIX: allow pasting links into title field that are longer than the max title length
This commit is contained in:
@ -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"},
|
||||
|
Reference in New Issue
Block a user