Skip to content

Commit

Permalink
SUP-46716 Increase limit for kuser about_me to 8192
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryna Weissman authored and Bryna Weissman committed Feb 16, 2025
1 parent bc26946 commit 19abdc2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions alpha/lib/model/kuser.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ public function __construct()

const MAX_NAME_LEN = 40;

const MAX_ABOUT_ME_LEN = 4096;

const MAX_COUNTRY_LEN = 2;

private $roughcut_count = -1;
Expand Down Expand Up @@ -1686,4 +1688,15 @@ public function getCapabilities()
$capabilities = $this->getFromCustomData(self::CAPABILITIES, null, '');
return ($capabilities == '') ? array() : explode(',', $capabilities);
}

public function setAboutMe($v)
{
PeerUtils::setExtension($this, $v, self::MAX_ABOUT_ME_LEN, __FUNCTION__);
return parent::setAboutMe(kString::alignUtf8String($v, self::MAX_ABOUT_ME_LEN));
}

public function getAboutMe()
{
return parent::getAboutMe() . PeerUtils::getExtension($this, __FUNCTION__);
}
}
1 change: 1 addition & 0 deletions api_v3/lib/types/KalturaBaseUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ class KalturaBaseUser extends KalturaObject implements IRelatedFilterable

/**
* @var string
* @maxLength 8192
*/
public $description;

Expand Down

0 comments on commit 19abdc2

Please sign in to comment.