openvk/Web/Models/Entities/Notifications/LikeNotification.php
Alma Armas 5b86b1fab7 Rate limit certain notifications
Likes and reposts will not emit notifications more than once per 2 minutes
2020-07-15 12:32:34 +00:00

14 lines
399 B
PHP

<?php declare(strict_types=1);
namespace openvk\Web\Models\Entities\Notifications;
use openvk\Web\Models\Entities\{User, Post};
final class LikeNotification extends Notification
{
protected $actionCode = 0;
protected $threshold = 120;
function __construct(User $recipient, Post $post, User $liker)
{
parent::__construct($recipient, $post, $liker, time(), "");
}
}