friendica-github/src
RealKinetix cf32a4b7cc Sanitize negative status count on APContact
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.
2021-07-20 10:11:04 -07:00
..
App Fix: Fetching of non public photos 2021-07-01 18:05:54 +00:00
Collection Cleanup Code 2021-06-20 13:25:45 +02:00
Console console autoinstall used parameter U twice 2021-06-23 18:05:39 +02:00
Content Merge pull request #10493 from annando/api 2021-07-13 22:48:31 -04:00
Core Item cache related functionality removed 2021-07-05 04:57:50 +00:00
Database Legacy DFRN transport layer is removed 2021-07-15 13:28:32 +00:00
Factory We now use the new account-user-view (and fixed the function name) 2021-07-11 09:39:34 +00:00
Model Sanitize negative status count on APContact 2021-07-20 10:11:04 -07:00
Module Added missing app class (avoid fatal error) 2021-07-19 16:15:06 +00:00
Network Detection of local requests 2021-07-19 06:14:14 +00:00
Object Legacy DFRN transport layer is removed 2021-07-15 13:28:32 +00:00
Protocol Merge remote-tracking branch 'upstream/develop' into loop-prevention 2021-07-19 12:07:34 +00:00
Render Update copyright 2021-03-29 08:40:20 +02:00
Repository We now use the new account-user-view (and fixed the function name) 2021-07-11 09:39:34 +00:00
Security An empty user id does not have children 2021-06-19 06:27:25 +00:00
Util Added todo 2021-07-19 06:55:23 +00:00
Worker Legacy DFRN transport layer is removed 2021-07-15 13:28:32 +00:00
App.php Issue 10264: Remote comments for visitors 2021-05-23 10:39:11 +00:00
BaseCollection.php Update copyright 2021-03-29 08:40:20 +02:00
BaseDataTransferObject.php Update copyright 2021-03-29 08:40:20 +02:00
BaseEntity.php Update copyright 2021-03-29 08:40:20 +02:00
BaseFactory.php Update copyright 2021-03-29 08:40:20 +02:00
BaseModel.php Update copyright 2021-03-29 08:40:20 +02:00
BaseModule.php Add all required HTTP methods 2021-05-08 09:14:19 +00:00
BaseRepository.php Update copyright 2021-03-29 08:40:20 +02:00
DI.php Cleanup Mastodon Factories 2021-06-20 13:25:45 +02:00
LegacyModule.php Update copyright 2021-03-29 08:40:20 +02:00