icon things
This commit is contained in:
parent
a91654df03
commit
8bc45ad6fd
50 changed files with 592 additions and 213 deletions
|
@ -34,7 +34,13 @@ class SpamProtectionService extends ChangeNotifier {
|
|||
return false;
|
||||
}
|
||||
|
||||
// Check cooldown
|
||||
// Allow first vote without cooldown for smooth user experience
|
||||
final votes = _userVotes[userId] ?? [];
|
||||
if (votes.isEmpty) {
|
||||
return true; // First vote is always allowed
|
||||
}
|
||||
|
||||
// Check cooldown for subsequent votes
|
||||
if (_isOnCooldown(userId, _lastVoteTime, voteCooldown)) {
|
||||
return false;
|
||||
}
|
||||
|
@ -54,7 +60,13 @@ class SpamProtectionService extends ChangeNotifier {
|
|||
return false;
|
||||
}
|
||||
|
||||
// Check cooldown
|
||||
// Allow first suggestion without cooldown for smooth user experience
|
||||
final suggestions = _userSuggestions[userId] ?? [];
|
||||
if (suggestions.isEmpty) {
|
||||
return true; // First suggestion is always allowed
|
||||
}
|
||||
|
||||
// Check cooldown for subsequent suggestions
|
||||
if (_isOnCooldown(userId, _lastSuggestionTime, suggestionCooldown)) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue