friendica/src/Model
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
..
Config Update copyright 2021-03-29 08:40:20 +02:00
Contact We now use the new account-user-view (and fixed the function name) 2021-07-11 09:39:34 +00:00
Notification Update copyright 2021-03-29 08:40:20 +02:00
Post Issue 10506 - again. Improved check for pictured in body 2021-07-17 07:55:19 +00:00
Storage Merge remote-tracking branch 'upstream/2021.06-rc' into proxy2 2021-06-28 10:11:41 +00:00
User Update copyright 2021-03-29 08:40:20 +02:00
APContact.php Sanitize negative status count on APContact 2021-07-20 10:11:04 -07:00
Attach.php Issue 10105: Use legacy photo data field if used 2021-04-01 04:51:55 +00:00
Contact.php Simplify code 2021-07-19 12:07:02 +00:00
Conversation.php Improved comment 2021-07-15 17:42:03 +00:00
Event.php Improved event storing / improved performance when fetching events 2021-07-18 15:05:46 +00:00
FContact.php Update on empty uri-id 2021-07-09 08:46:42 +00:00
FileTag.php Update copyright 2021-03-29 08:40:20 +02:00
FSuggest.php Update copyright 2021-03-29 08:40:20 +02:00
Group.php Update copyright 2021-03-29 08:40:20 +02:00
GServer.php Ensure nodeinfo-provided protocols are strings in Model\GServer::parseNodeinfo2 2021-05-31 00:47:03 -04:00
Host.php Update copyright 2021-03-29 08:40:20 +02:00
Introduction.php Update copyright 2021-03-29 08:40:20 +02:00
Item.php Manually add Persian to post body language detection 2021-07-19 14:00:31 -04:00
ItemURI.php Reworked media handling 2021-04-26 06:50:12 +00:00
Mail.php Update src/Model/Mail.php 2021-05-23 07:37:17 +02:00
Nodeinfo.php Update copyright 2021-03-29 08:40:20 +02:00
Notification.php Update copyright 2021-03-29 08:40:20 +02:00
OpenWebAuthToken.php Update copyright 2021-03-29 08:40:20 +02:00
PermissionSet.php Update copyright 2021-03-29 08:40:20 +02:00
Photo.php Detection of local requests 2021-07-19 06:14:14 +00:00
Post.php New founction to count threads 2021-07-08 17:32:41 +00:00
Process.php Update copyright 2021-03-29 08:40:20 +02:00
Profile.php Some more "convertForUriId" replacements 2021-07-10 12:58:48 +00:00
ProfileField.php Update copyright 2021-03-29 08:40:20 +02:00
PushSubscriber.php Update copyright 2021-03-29 08:40:20 +02:00
README.md typo 2019-03-22 22:56:57 -04:00
Register.php Update copyright 2021-03-29 08:40:20 +02:00
Search.php Update copyright 2021-03-29 08:40:20 +02:00
Tag.php Fix display of RTL tags 2021-05-20 08:39:36 -04:00
User.php Automatically subscribe to the followings of a given AP account 2021-07-13 06:06:08 +00:00
Verb.php Update copyright 2021-03-29 08:40:20 +02:00

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.