Merge branch '459-activitypub-integration' of github.com:NuSkooler/enigma-bbs into 459-activitypub-integration

This commit is contained in:
Bryan Ashby 2023-01-28 11:57:14 -07:00
commit 2f577fcada
No known key found for this signature in database
GPG Key ID: C2C1B501E4EFD994
1 changed files with 5 additions and 0 deletions

View File

@ -151,6 +151,11 @@ TextView.prototype.getData = function () {
TextView.prototype.setText = function (text, redraw) {
redraw = _.isBoolean(redraw) ? redraw : true;
// Don't bomb if text isn't defined, just treat as blank instead.
if (_.isUndefined(text)) {
text = '';
}
if (!_.isString(text)) {
// allow |text| to be numbers/etc.
text = text.toString();