Explorar el Código

Update RateLimit, add max post edits per hour and day

Daniel Supernault hace 5 años
padre
commit
51fbfcdcf7
Se han modificado 1 ficheros con 10 adiciones y 0 borrados
  1. 10 0
      app/Util/RateLimit/User.php

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

@@ -113,4 +113,14 @@ trait User {
 	{
 		return 35;
 	}
+
+	public function getMaxPostEditsPerHourAttribute()
+	{
+		return 10;
+	}
+
+	public function getMaxPostEditsPerDayAttribute()
+	{
+		return 20;
+	}
 }