]> git.mxchange.org Git - friendica.git/log
friendica.git
2 years agoSanitize negative status count on APContact
RealKinetix [Tue, 20 Jul 2021 17:11:04 +0000 (10:11 -0700)]
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.

2 years agoMerge pull request #10523 from annando/issue-10519
Hypolite Petovan [Tue, 20 Jul 2021 14:42:07 +0000 (10:42 -0400)]
Merge pull request #10523 from annando/issue-10519

Issue 10519: check for tables and fields before applying changes

2 years agoIssue 10519: check for tables and fields before applying changes
Michael [Tue, 20 Jul 2021 06:11:12 +0000 (06:11 +0000)]
Issue 10519: check for tables and fields before applying changes

2 years agoMerge pull request #10522 from annando/warning
Hypolite Petovan [Mon, 19 Jul 2021 23:21:45 +0000 (19:21 -0400)]
Merge pull request #10522 from annando/warning

Fix warning "class 'Friendica\Module\Objects' not found"

2 years agoFix warning "class 'Friendica\Module\Objects' not found"
Michael [Mon, 19 Jul 2021 23:14:16 +0000 (23:14 +0000)]
Fix warning "class 'Friendica\Module\Objects' not found"

2 years agoMerge pull request #10521 from MrPetovan/task/10511-add-persian-language-detection
Michael Vogel [Mon, 19 Jul 2021 22:49:51 +0000 (00:49 +0200)]
Merge pull request #10521 from MrPetovan/task/10511-add-persian-language-detection

Manually add Persian to post body language detection

2 years agoManually add Persian to post body language detection
Hypolite Petovan [Mon, 19 Jul 2021 18:00:31 +0000 (14:00 -0400)]
Manually add Persian to post body language detection

2 years agoMerge pull request #10520 from annando/fatal
Tobias Diekershoff [Mon, 19 Jul 2021 17:06:09 +0000 (19:06 +0200)]
Merge pull request #10520 from annando/fatal

Added missing app class (avoid fatal error)

2 years agoAdded missing app class (avoid fatal error)
Michael [Mon, 19 Jul 2021 16:15:06 +0000 (16:15 +0000)]
Added missing app class (avoid fatal error)

2 years agoMerge pull request #10508 from annando/loop-prevention
Hypolite Petovan [Mon, 19 Jul 2021 14:21:10 +0000 (10:21 -0400)]
Merge pull request #10508 from annando/loop-prevention

Prevent endless loop when updating contact by probe

2 years agoMerge remote-tracking branch 'upstream/develop' into loop-prevention
Michael [Mon, 19 Jul 2021 12:07:34 +0000 (12:07 +0000)]
Merge remote-tracking branch 'upstream/develop' into loop-prevention

2 years agoSimplify code
Michael [Mon, 19 Jul 2021 12:07:02 +0000 (12:07 +0000)]
Simplify code

2 years agoMerge pull request #10515 from annando/event-handling
Hypolite Petovan [Mon, 19 Jul 2021 08:00:53 +0000 (04:00 -0400)]
Merge pull request #10515 from annando/event-handling

Improved event storing / improved performance when fetching events

2 years agoMerge remote-tracking branch 'upstream/develop' into loop-prevention
Michael [Mon, 19 Jul 2021 07:51:29 +0000 (07:51 +0000)]
Merge remote-tracking branch 'upstream/develop' into loop-prevention

2 years agoMerge pull request #10512 from annando/ap-endpoints
Hypolite Petovan [Mon, 19 Jul 2021 07:30:23 +0000 (03:30 -0400)]
Merge pull request #10512 from annando/ap-endpoints

Move ActivityPub endpoints to an AP class

2 years agoAdded todo
Michael [Mon, 19 Jul 2021 06:55:23 +0000 (06:55 +0000)]
Added todo

2 years agoSimplyfied picture fetching
Michael [Mon, 19 Jul 2021 06:19:13 +0000 (06:19 +0000)]
Simplyfied picture fetching

2 years agoDetection of local requests
Michael [Mon, 19 Jul 2021 06:14:14 +0000 (06:14 +0000)]
Detection of local requests

2 years agoDon't probe non existing local contacts
Michael [Mon, 19 Jul 2021 04:49:58 +0000 (04:49 +0000)]
Don't probe non existing local contacts

2 years agoImproved detection for a local contact
Michael [Mon, 19 Jul 2021 04:15:57 +0000 (04:15 +0000)]
Improved detection for a local contact

2 years agoFetch local data without HTTP requests
Michael [Sun, 18 Jul 2021 18:54:25 +0000 (18:54 +0000)]
Fetch local data without HTTP requests

2 years agoPrevent loop also when fetching the outbox
Michael [Sun, 18 Jul 2021 16:42:55 +0000 (16:42 +0000)]
Prevent loop also when fetching the outbox

2 years agoImproved event storing / improved performance when fetching events
Michael [Sun, 18 Jul 2021 15:05:46 +0000 (15:05 +0000)]
Improved event storing / improved performance when fetching events

2 years agoMerge pull request #10513 from annando/notice
Tobias Diekershoff [Sun, 18 Jul 2021 06:26:06 +0000 (08:26 +0200)]
Merge pull request #10513 from annando/notice

Fix notice in events

2 years agoMerge pull request #10509 from annando/issue-10506a
Tobias Diekershoff [Sun, 18 Jul 2021 05:03:09 +0000 (07:03 +0200)]
Merge pull request #10509 from annando/issue-10506a

Issue 10506 - again. Improved check for pictured in body

2 years agoMove ActivityPub endpoints to an AP class
Michael [Sat, 17 Jul 2021 20:28:46 +0000 (20:28 +0000)]
Move ActivityPub endpoints to an AP class

2 years agoFix notice in events
Michael [Sat, 17 Jul 2021 20:27:18 +0000 (20:27 +0000)]
Fix notice in events

2 years agoIssue 10506 - again. Improved check for pictured in body
Michael [Sat, 17 Jul 2021 07:55:19 +0000 (07:55 +0000)]
Issue 10506 - again. Improved check for pictured in body

2 years agoFixed wrong parameter
Michael [Sat, 17 Jul 2021 05:25:04 +0000 (05:25 +0000)]
Fixed wrong parameter

2 years agoPrevent endless loop when updating contact by probe
Michael [Sat, 17 Jul 2021 04:57:21 +0000 (04:57 +0000)]
Prevent endless loop when updating contact by probe

2 years agoMerge pull request #10507 from annando/issue-10506
Tobias Diekershoff [Sat, 17 Jul 2021 04:47:30 +0000 (06:47 +0200)]
Merge pull request #10507 from annando/issue-10506

Issue 10506: Fix for multiple picture posts

2 years agoIssue 10506: Fix for multiple picture posts
Michael [Sat, 17 Jul 2021 04:32:46 +0000 (04:32 +0000)]
Issue 10506: Fix for multiple picture posts

2 years agoMerge pull request #10505 from annando/dfrn-endpoints
Hypolite Petovan [Fri, 16 Jul 2021 18:32:53 +0000 (14:32 -0400)]
Merge pull request #10505 from annando/dfrn-endpoints

DFRN endpoints moved, changelog entry added

2 years agoDFRN endpoints moved, changelog entry added
Michael [Fri, 16 Jul 2021 14:45:29 +0000 (14:45 +0000)]
DFRN endpoints moved, changelog entry added

2 years agoMerge pull request #10503 from annando/no-legacy-dfrn
Hypolite Petovan [Thu, 15 Jul 2021 20:24:07 +0000 (16:24 -0400)]
Merge pull request #10503 from annando/no-legacy-dfrn

Legacy DFRN transport layer is removed

2 years agoMerge pull request #10499 from realkinetix/sanitize-ap-followers-count
Hypolite Petovan [Thu, 15 Jul 2021 19:14:22 +0000 (15:14 -0400)]
Merge pull request #10499 from realkinetix/sanitize-ap-followers-count

Sanitize negative followers count on APContact

2 years agoImproved comment
Michael [Thu, 15 Jul 2021 17:42:03 +0000 (17:42 +0000)]
Improved comment

2 years agoRemoved test
Michael [Thu, 15 Jul 2021 13:37:48 +0000 (13:37 +0000)]
Removed test

2 years agoLegacy DFRN transport layer is removed
Michael [Thu, 15 Jul 2021 13:28:32 +0000 (13:28 +0000)]
Legacy DFRN transport layer is removed

2 years agoNegative numbers in following is a thing too
RealKinetix [Wed, 14 Jul 2021 20:51:30 +0000 (13:51 -0700)]
Negative numbers in following is a thing too

Check & sanitize 'following' as well, as per:
https://mastodon.social/@BLUW

2 years agoAdjust where the code is to avoid empty warning
RealKinetix [Wed, 14 Jul 2021 20:46:38 +0000 (13:46 -0700)]
Adjust where the code is to avoid empty warning

Shifted the code to avoid:
PHP Warning:  Undefined array key "totalItems" in /home/friendicadev/friendica/src/Model/APContact.php on line 277

2 years agoFix indent to standards
RealKinetix [Wed, 14 Jul 2021 19:17:03 +0000 (12:17 -0700)]
Fix indent to standards

2 years agoSanitize negative followers count on APContact
RealKinetix [Wed, 14 Jul 2021 17:15:19 +0000 (10:15 -0700)]
Sanitize negative followers count on APContact

Please see
https://github.com/friendica/friendica/issues/9498#issuecomment-818894106
and related discussion regarding this - it appears it's possible for AP
users, maybe just Mastodon users, to have a negative followers count.
This causes fatal errors in Friendica, so I think we should sanitize
this input.

2 years agoMerge pull request #10496 from annando/subscribe
Hypolite Petovan [Wed, 14 Jul 2021 10:45:25 +0000 (06:45 -0400)]
Merge pull request #10496 from annando/subscribe

Subscribe to contacts from a remote AP account

2 years agoMerge pull request #10497 from MrPetovan/bug/10494-api-last-status-optional
Michael Vogel [Wed, 14 Jul 2021 03:09:11 +0000 (05:09 +0200)]
Merge pull request #10497 from MrPetovan/bug/10494-api-last-status-optional

Make last status parameter actually optional in Object\Api\Mastodon\Conversation

2 years agoMake last status parameter actually optional in Object\Api\Mastodon\Conversation
Hypolite Petovan [Wed, 14 Jul 2021 03:02:11 +0000 (23:02 -0400)]
Make last status parameter actually optional in Object\Api\Mastodon\Conversation

2 years agoRemoved experimental code
Michael [Wed, 14 Jul 2021 02:59:29 +0000 (02:59 +0000)]
Removed experimental code

2 years agospaces removed
Michael [Wed, 14 Jul 2021 02:57:50 +0000 (02:57 +0000)]
spaces removed

2 years agoUpdated messages.po
Michael [Wed, 14 Jul 2021 02:56:15 +0000 (02:56 +0000)]
Updated messages.po

2 years agoMerge remote-tracking branch 'upstream/develop' into subscribe
Michael [Wed, 14 Jul 2021 02:54:12 +0000 (02:54 +0000)]
Merge remote-tracking branch 'upstream/develop' into subscribe

2 years agoMerge pull request #10493 from annando/api
Hypolite Petovan [Wed, 14 Jul 2021 02:48:31 +0000 (22:48 -0400)]
Merge pull request #10493 from annando/api

Improve how shared posting look on mobile apps

2 years agoMerge pull request #10492 from annando/simple-short
Hypolite Petovan [Wed, 14 Jul 2021 02:47:47 +0000 (22:47 -0400)]
Merge pull request #10492 from annando/simple-short

Issue 10491: Possibility for simple shortening added

2 years agoAdded messages.po
Michael [Mon, 12 Jul 2021 14:20:10 +0000 (14:20 +0000)]
Added messages.po

2 years agoIssue 10491: Possibility for simple shortening added
Michael [Mon, 12 Jul 2021 14:11:51 +0000 (14:11 +0000)]
Issue 10491: Possibility for simple shortening added

2 years agoMerge remote-tracking branch 'upstream/develop' into api
Michael [Wed, 14 Jul 2021 02:28:37 +0000 (02:28 +0000)]
Merge remote-tracking branch 'upstream/develop' into api

2 years agoMerge pull request #10490 from annando/fatal
Hypolite Petovan [Wed, 14 Jul 2021 01:01:53 +0000 (21:01 -0400)]
Merge pull request #10490 from annando/fatal

Fix Uncaught TypeError: Argument 1 passed to Friendica\Model\Item::storeForUserByUriId()

2 years agoMerge pull request #10489 from annando/notice
Hypolite Petovan [Wed, 14 Jul 2021 01:00:30 +0000 (21:00 -0400)]
Merge pull request #10489 from annando/notice

Fixes "Undefined index: nick"

2 years agoChange the BBCode version
Michael [Tue, 13 Jul 2021 20:37:06 +0000 (20:37 +0000)]
Change the BBCode version

2 years agoImprove links for API
Michael [Tue, 13 Jul 2021 14:40:10 +0000 (14:40 +0000)]
Improve links for API

2 years agoImprove how shared posting look on mobile apps
Michael [Tue, 13 Jul 2021 08:30:05 +0000 (08:30 +0000)]
Improve how shared posting look on mobile apps

2 years agoAutomatically subscribe to the followings of a given AP account
Michael [Tue, 13 Jul 2021 06:06:08 +0000 (06:06 +0000)]
Automatically subscribe to the followings of a given AP account

2 years agoDefining return value
Michael [Mon, 12 Jul 2021 20:06:35 +0000 (20:06 +0000)]
Defining return value

2 years agoDefiniing parameter type
Michael [Mon, 12 Jul 2021 14:28:13 +0000 (14:28 +0000)]
Definiing parameter type

2 years agoAdded messages.po
Michael [Mon, 12 Jul 2021 14:20:10 +0000 (14:20 +0000)]
Added messages.po

2 years agoIssue 10491: Possibility for simple shortening added
Michael [Mon, 12 Jul 2021 14:11:51 +0000 (14:11 +0000)]
Issue 10491: Possibility for simple shortening added

2 years agoFix Uncaught TypeError: Argument 1 passed to Friendica\Model\Item::storeForUserByUriId()
Michael [Mon, 12 Jul 2021 07:02:01 +0000 (07:02 +0000)]
Fix Uncaught TypeError: Argument 1 passed to Friendica\Model\Item::storeForUserByUriId()

2 years agoFixes "Undefined index: nick"
Michael [Mon, 12 Jul 2021 06:25:48 +0000 (06:25 +0000)]
Fixes "Undefined index: nick"

2 years agoMerge pull request #10484 from annando/use-account-view
Hypolite Petovan [Mon, 12 Jul 2021 02:56:23 +0000 (22:56 -0400)]
Merge pull request #10484 from annando/use-account-view

We now use the new account-user-view (and fixed the function name)

2 years agoAccepting "null" as parameter value
Michael [Sun, 11 Jul 2021 14:37:17 +0000 (14:37 +0000)]
Accepting "null" as parameter value

2 years agoMerge pull request #10486 from nupplaphil/feat/remove_test_data
Michael Vogel [Sun, 11 Jul 2021 12:38:34 +0000 (14:38 +0200)]
Merge pull request #10486 from nupplaphil/feat/remove_test_data

Remove outdated friendica_test_data.sql

2 years agoRemove outdated friendica_test_data.sql
Philipp [Sun, 11 Jul 2021 12:27:52 +0000 (14:27 +0200)]
Remove outdated friendica_test_data.sql

2 years agoAvoid problems with "null" values
Michael [Sun, 11 Jul 2021 11:11:03 +0000 (11:11 +0000)]
Avoid problems with "null" values

2 years agoLinefeed added
Michael [Sun, 11 Jul 2021 09:51:04 +0000 (09:51 +0000)]
Linefeed added

2 years agoWe now use the new account-user-view (and fixed the function name)
Michael [Sun, 11 Jul 2021 09:39:34 +0000 (09:39 +0000)]
We now use the new account-user-view (and fixed the function name)

2 years agoMerge pull request #10483 from annando/account
Hypolite Petovan [Sun, 11 Jul 2021 05:14:39 +0000 (01:14 -0400)]
Merge pull request #10483 from annando/account

New view that combines all contact tables

2 years agoPublic id added
Michael [Sun, 11 Jul 2021 03:06:46 +0000 (03:06 +0000)]
Public id added

2 years agoNew view chat combines all contact tables
Michael [Sat, 10 Jul 2021 21:55:03 +0000 (21:55 +0000)]
New view chat combines all contact tables

2 years agoMerge pull request #10482 from annando/converturiid
Hypolite Petovan [Sat, 10 Jul 2021 21:45:34 +0000 (17:45 -0400)]
Merge pull request #10482 from annando/converturiid

Some more "convertForUriId" replacements

2 years agoFix fatal error
Michael [Sat, 10 Jul 2021 21:08:55 +0000 (21:08 +0000)]
Fix fatal error

2 years agoFix tests
Michael [Sat, 10 Jul 2021 14:04:27 +0000 (14:04 +0000)]
Fix tests

2 years agoFix tests
Michael [Sat, 10 Jul 2021 14:02:03 +0000 (14:02 +0000)]
Fix tests

2 years agoSome more "convertForUriId" replacements
Michael [Sat, 10 Jul 2021 12:58:48 +0000 (12:58 +0000)]
Some more "convertForUriId" replacements

2 years agoMerge pull request #10480 from annando/postupdate
Hypolite Petovan [Sat, 10 Jul 2021 02:19:39 +0000 (22:19 -0400)]
Merge pull request #10480 from annando/postupdate

Post update: Set "uri-id" in the contact tables

2 years agoMerge pull request #10479 from MrPetovan/task/9378-merge-share-template
Michael Vogel [Sat, 10 Jul 2021 02:01:51 +0000 (04:01 +0200)]
Merge pull request #10479 from MrPetovan/task/9378-merge-share-template

Merge frio-specific share block template into the base template

2 years agoPost update: Set "uri-id" in the contact tables
Michael [Sat, 10 Jul 2021 01:41:26 +0000 (01:41 +0000)]
Post update: Set "uri-id" in the contact tables

2 years agoMerge pull request #10478 from annando/notice
Hypolite Petovan [Fri, 9 Jul 2021 23:31:30 +0000 (19:31 -0400)]
Merge pull request #10478 from annando/notice

Fix notice "undefined index: uri"

2 years agoMerge frio-specific share block template into the base template
Hypolite Petovan [Fri, 9 Jul 2021 23:23:01 +0000 (19:23 -0400)]
Merge frio-specific share block template into the base template

- Add BIDI support for share blocks
- Remove redundant share block styles

2 years agoRevert some test changes
Michael [Fri, 9 Jul 2021 19:32:06 +0000 (19:32 +0000)]
Revert some test changes

2 years agoFix notices because of unknown Hubzilla activity type
Michael [Fri, 9 Jul 2021 19:30:41 +0000 (19:30 +0000)]
Fix notices because of unknown Hubzilla activity type

2 years agoFix "Undefined index: reply-to-id"
Michael [Fri, 9 Jul 2021 18:10:48 +0000 (18:10 +0000)]
Fix "Undefined index: reply-to-id"

2 years agoFix the tests, hopefully
Michael [Fri, 9 Jul 2021 17:13:54 +0000 (17:13 +0000)]
Fix the tests, hopefully

2 years agoDon't update automatically to make tests happy
Michael [Fri, 9 Jul 2021 16:20:22 +0000 (16:20 +0000)]
Don't update automatically to make tests happy

2 years agoFix notice "undefined index: uri"
Michael [Fri, 9 Jul 2021 14:52:22 +0000 (14:52 +0000)]
Fix notice "undefined index: uri"

2 years agoMerge pull request #10472 from annando/proxy
Hypolite Petovan [Fri, 9 Jul 2021 12:35:48 +0000 (08:35 -0400)]
Merge pull request #10472 from annando/proxy

Simplified proxy, item cache related stuff removed

2 years agoUpdate on empty uri-id
Michael [Fri, 9 Jul 2021 08:46:42 +0000 (08:46 +0000)]
Update on empty uri-id

2 years agoContact tables added to expire function
Michael [Fri, 9 Jul 2021 08:08:48 +0000 (08:08 +0000)]
Contact tables added to expire function

2 years agoThe uri-id is now in all contact tables
Michael [Fri, 9 Jul 2021 07:09:33 +0000 (07:09 +0000)]
The uri-id is now in all contact tables

2 years agoFix tests
Michael [Fri, 9 Jul 2021 06:37:45 +0000 (06:37 +0000)]
Fix tests

2 years agoFunction renamed to better reflect the functionality
Michael [Fri, 9 Jul 2021 06:29:24 +0000 (06:29 +0000)]
Function renamed to better reflect the functionality

2 years agoAvoid error on empty content
Michael [Fri, 9 Jul 2021 04:42:01 +0000 (04:42 +0000)]
Avoid error on empty content