mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Safer checkUrl
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user