Fix quote submission bug and update copyright notice
- Fixed config access in submit route (config.min_quote_length -> config.get('quotes.min_length'))
- Fixed Flask-Limiter initialization syntax
- Reduced minimum quote length from 10 to 1 character
- Updated copyright notice from '© ircquotes 2024, All Rights Reserved.' to '@ ircquotes 2024-2025'
- Quote submission now works properly with correct status assignment (pending/approved)
- Quotes are properly created with status=0 (pending) when auto_approve=false
This commit is contained in:
@@ -59,7 +59,7 @@
|
||||
"password_hash": "$argon2i$v=19$m=65536,t=4,p=1$cWZDc1pQaUJLTUJoaVI4cw$kn8XKz6AEZi8ebXfyyZuzommSypliVFrsGqzOyUEIHA"
|
||||
},
|
||||
"quotes": {
|
||||
"min_length": 10,
|
||||
"min_length": 1,
|
||||
"max_length": 5000,
|
||||
"per_page": 25,
|
||||
"auto_approve": false,
|
||||
@@ -74,7 +74,7 @@
|
||||
"bulk_moderation_enabled": true
|
||||
},
|
||||
"logging": {
|
||||
"level": "WARNING",
|
||||
"level": "DEBUG",
|
||||
"format": "%(asctime)s [%(levelname)s] %(message)s"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user