cf32a4b7cc
Similar to PR #10499, Mastodon apparently has some counting flaws and can present a negative status count for a user, causing Friendica to fail (at least under PHP 8) with: [20-Jul-2021 16:35:18 UTC] PHP Fatal error: Uncaught PDOException: SQLSTATE[22003]: Numeric value out of range: 1264 Out of range value for column 'statuses_count' at row 1 in /home/friendicadev/friendica/src/Database/Database.php:560 Stack trace: thrown in /home/friendicadev/friendica/src/Database/Database.php on line 560 This change prevents values lower than 0 from being assigned to statuses_count. |
||
---|---|---|
.. | ||
Config | ||
Contact | ||
Notification | ||
Post | ||
Storage | ||
User | ||
APContact.php | ||
Attach.php | ||
Contact.php | ||
Conversation.php | ||
Event.php | ||
FContact.php | ||
FileTag.php | ||
FSuggest.php | ||
Group.php | ||
GServer.php | ||
Host.php | ||
Introduction.php | ||
Item.php | ||
ItemURI.php | ||
Mail.php | ||
Nodeinfo.php | ||
Notification.php | ||
OpenWebAuthToken.php | ||
PermissionSet.php | ||
Photo.php | ||
Post.php | ||
Process.php | ||
Profile.php | ||
ProfileField.php | ||
PushSubscriber.php | ||
README.md | ||
Register.php | ||
Search.php | ||
Tag.php | ||
User.php | ||
Verb.php |
Friendica\Model
Models are the glue between the business logic of the app and the datastore(s).
In the namespace Model should only be static classes that interact with the DB with the same name as a database table.