mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 14:49:07 +08:00
Safer checkUrl
This commit is contained in:
parent
b6e03116ba
commit
7b2e4170e9
|
@ -51,6 +51,8 @@ export default Ember.Component.extend({
|
|||
},
|
||||
|
||||
_checkForUrl() {
|
||||
if (!this.element || this.isDestroying || this.isDestroyed) { return; }
|
||||
|
||||
if (this.get('isAbsoluteUrl') && (this.get('composer.reply')||"").length === 0) {
|
||||
// Try to onebox. If success, update post body and title.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user