mirror of
https://github.com/openvk/openvk
synced 2024-12-25 01:51:03 +03:00
d321b524fd
Quote length increased to 400 also tags are being stripped now
13 lines
457 B
PHP
13 lines
457 B
PHP
<?php declare(strict_types=1);
|
|
namespace openvk\Web\Models\Entities\Notifications;
|
|
use openvk\Web\Models\Entities\{User, Post, Comment};
|
|
|
|
final class CommentNotification extends Notification
|
|
{
|
|
protected $actionCode = 2;
|
|
|
|
function __construct(User $recipient, Comment $comment, $postable, User $commenter)
|
|
{
|
|
parent::__construct($recipient, $postable, $commenter, time(), ovk_proc_strtr(strip_tags($comment->getText()), 400));
|
|
}
|
|
}
|