Add 'statusnet_textarea' backward-compatibility
This commit is contained in:
parent
d816af9aa9
commit
7cea3f9f11
@ -74,9 +74,9 @@ class NewnoticeAction extends FormAction
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->trimmed('content')) {
|
// Backwards compatibility for "share this" widget things.
|
||||||
$this->formOpts['content'] = $this->trimmed('content');
|
// If no 'content', use 'status_textarea'
|
||||||
}
|
$this->formOpts['content'] = $this->trimmed('content') ?: $this->trimmed('status_textarea');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user