profile, video: count symbols limitation.

This commit is contained in:
0x7d5 2021-09-15 01:54:50 +05:00
parent 006a344133
commit 8958fa5821
4 changed files with 6 additions and 4 deletions

View file

@ -129,7 +129,7 @@ final class UserPresenter extends OpenVKPresenter
$user->setCity(empty($this->postParam("city")) ? NULL : $this->postParam("city"));
$user->setAddress(empty($this->postParam("address")) ? NULL : $this->postParam("address"));
} elseif($_GET['act'] === "interests") {
$user->setInterests(empty($this->postParam("interests")) ? NULL : $this->postParam("interests"));
$user->setInterests(empty($this->postParam("interests")) ? NULL : ovk_proc_strtr($this->postParam("interests"), 300));
$user->setFav_Music(empty($this->postParam("fav_music")) ? NULL : $this->postParam("fav_music"));
$user->setFav_Films(empty($this->postParam("fav_films")) ? NULL : $this->postParam("fav_films"));
$user->setFav_Shows(empty($this->postParam("fav_shows")) ? NULL : $this->postParam("fav_shows"));

View file

@ -57,8 +57,8 @@ final class VideosPresenter extends OpenVKPresenter
if(!empty($this->postParam("name"))) {
$video = new Video;
$video->setOwner($this->user->id);
$video->setName($this->postParam("name"));
$video->setDescription($this->postParam("desc"));
$video->setName(ovk_proc_strtr($this->postParam("name"), 61));
$video->setDescription(ovk_proc_strtr($this->postParam("desc"), 300));
$video->setCreated(time());
try {

View file

@ -245,7 +245,7 @@
style="max-width: 170px; margin: auto;" />
</div>
<div>
<b><a href="/video{$video->getPrettyId()}">{$video->getName()}</a></b>
<b><a href="/video{$video->getPrettyId()}">{ovk_proc_strtr($video->getName(), 30)}</a></b>
</div>
</div>
</div>

View file

@ -665,6 +665,8 @@ table.User {
border: #DEDEDE solid 1px;
clear: both;
margin-bottom: 12px;
overflow: hidden;
word-break: break-word;
}
.gray-block {