Explorar el Código

Update User RateLimits

Daniel Supernault hace 6 años
padre
commit
8367e0cf48
Se han modificado 1 ficheros con 15 adiciones y 0 borrados
  1. 15 0
      app/Util/RateLimit/User.php

+ 15 - 0
app/Util/RateLimit/User.php

@@ -49,8 +49,23 @@ trait User {
 		return 500;
 	}
 
+	public function getMaxUserBansPerDayAttribute()
+	{
+		return 100;
+	}
+
 	public function getMaxInstanceBansPerDayAttribute()
 	{
 		return 100;
 	}
+
+	public function getMaxHashtagFollowsPerHourAttribute()
+	{
+		return 20;
+	}
+
+	public function getMaxHashtagFollowsPerDayAttribute()
+	{
+		return 100;
+	}
 }