mirror of
https://github.com/openvk/openvk
synced 2024-11-16 12:09:14 +03:00
5b86b1fab7
Likes and reposts will not emit notifications more than once per 2 minutes
14 lines
407 B
PHP
14 lines
407 B
PHP
<?php declare(strict_types=1);
|
|
namespace openvk\Web\Models\Entities\Notifications;
|
|
use openvk\Web\Models\Entities\{User, Post};
|
|
|
|
final class RepostNotification extends Notification
|
|
{
|
|
protected $actionCode = 1;
|
|
protected $threshold = 120;
|
|
|
|
function __construct(User $recipient, Post $post, User $reposter)
|
|
{
|
|
parent::__construct($recipient, $post, $reposter, time(), "");
|
|
}
|
|
}
|