Roland Häder
44a9ec9b17
Rewrite:
...
- avoid having array|string for $table to have a "string" type-hint for $table
- you now have to do it for yourself by giving 'schema.table' as parameter
2022-06-21 13:47:38 +02:00
Roland Häder
94a594eeb2
Ops, wrong type-hint
2022-06-20 03:36:36 +02:00
Roland Häder
14bf72e4fe
Changes:
...
- added some documentation
- added type-hints
2022-06-20 02:48:05 +02:00
Roland Häder
a0c8fc6d6e
Changes:
...
- added more type-hints
2022-06-20 02:48:02 +02:00
Roland Häder
7bb0cb5323
Changes:
...
- added more type-hints
- DBStructure::existsTable() does no longer need array support for table name
because this is no longer used (good work!)
2022-06-19 02:11:12 +02:00
Roland Häder
8756d92316
Continued:
...
- prevents a "Return value of Friendica\Core\Worker::workerProcess() must be of the type array, bool returned"
2022-06-18 15:57:31 +02:00
Roland Häder
af8cd5ca86
Worker::getWaitingJobForPID() can also return FALSE on failure ... :-(
2022-06-17 17:18:31 +02:00
Roland Häder
f7c1eaa858
Continued:
...
- added type-hints
- removed out-dated documentation
- added some missing documentation
2022-06-17 17:18:31 +02:00
Michael
7e747b2f41
API: Speed improvements when fetching posts
2022-06-10 18:49:03 +00:00
Michael
e46354a522
New command to merge duplicated contacts
2022-06-01 22:11:03 +00:00
Hypolite Petovan
1301a53f20
Remove relocation form from Admin Site settings
2022-05-29 13:15:23 -04:00
Hypolite Petovan
f1630ebb05
Add relocate console command
2022-05-29 13:13:59 -04:00
Hypolite Petovan
7d09ce86c4
Move relocation feature in its separate class
...
- Create Database->replaceInTableFields method
2022-05-29 12:11:18 -04:00
Michael
d6242aacf6
Console command to move avatars to the avatar cache
2022-05-23 12:15:30 +00:00
Michael
9ded39eff6
Renamed variable
2022-05-20 15:49:59 +00:00
Michael
2fc5957abb
Spelling error fixed
2022-05-20 05:46:38 +00:00
Michael
653af77e5f
Further formatting fixes
2022-05-20 04:52:18 +00:00
Michael
6ce23bd9ca
Fixed code structure
2022-05-20 04:42:10 +00:00
Michael
dc16e6d471
The worker is split into several classes
2022-05-19 19:24:21 +00:00
Michael
4622814e5f
Configuration for logging added
2022-05-18 03:10:38 +00:00
Michael
f6167b4cfd
New function to exit the program
2022-05-18 02:13:54 +00:00
Michael
4016a576d5
Log the execution time
2022-05-17 20:47:23 +00:00
Michael
a8839517fe
Fix workerqueue entries with wrong priority
2022-05-14 06:36:43 +00:00
Hypolite Petovan
4729fca5d9
Merge pull request #11457 from annando/performance
...
Improve page performance
2022-05-06 11:11:05 -04:00
Balázs Úr
4171ff7563
Add Danish language to list of native language names
2022-05-03 21:13:47 +02:00
Michael
6e394ac6ff
Whitespaces removed
2022-05-02 14:36:21 +00:00
Michael
a9990db98c
Clean the worker queue directly from cron
2022-05-02 05:16:02 +00:00
Michael
13e4144ba6
Use a centralized function to check the priority
2022-05-01 09:29:31 +00:00
Michael
f7b6507438
More checks for strange priorities
2022-05-01 08:58:48 +00:00
Michael
e19681684b
Fix worker priorities
2022-05-01 06:57:29 +00:00
Michael
171354181d
Use central function to fetch the global directory
2022-04-26 18:33:58 +00:00
Hypolite Petovan
3842f02b02
Merge pull request #11402 from annando/featured-endpoint
...
We now offer an endpoint for featured posts
2022-04-11 11:17:56 -04:00
Michael
4a22034be6
Unified output via the "httpExit" function
2022-04-10 08:31:55 +00:00
Michael
d15023fe4b
Unified JSON exit
2022-04-09 11:58:01 +00:00
Philipp
e299fc67c8
Introduce "accept_header" as specific argument to the http client
2022-04-02 21:16:53 +02:00
Philipp
73c3b21665
Move ACCEPT constants to own "enum" class
2022-04-02 20:26:11 +02:00
Michael
908d2594ed
Use "HttpClientOptions"
2022-03-29 08:57:38 +00:00
Michael
1fae0123ec
Some more "accept" parameters are added
2022-03-29 06:24:20 +00:00
Hypolite Petovan
49971b1465
Switch data source from notify to notification in Module\Notifications\Ping
...
- Change unused FormattedNotification classes to FormattedNavNotification classes
2022-03-14 07:58:38 -04:00
Hypolite Petovan
cddead2343
Move follow revoke protocol to worker task
...
- Switch to public contact for revoke_follow hook
2022-02-24 09:35:55 -05:00
Hypolite Petovan
6a1f9a7fa3
Move unfollow protocol to worker task
...
- Add uid parameter to unfollow hook
- Rework and unify Contact::unfollow, Contact::removeSharer and Contact::terminateFriendship
- Add missing twitterUser property to Twitter\Friendships\Destroy module
2022-02-24 09:35:54 -05:00
Hypolite Petovan
48e2963ac7
Remove unused variable in Core\Worker::defer
2022-02-24 09:35:54 -05:00
Hypolite Petovan
1d779c6193
Ensure the private message recipient is valid in Mail::send
...
- Arbitrary input could be used to circumvent most restrictions regarding recipients (except contact relationship)
2022-02-23 21:30:18 -05:00
Philipp
4e58c6981c
Don't use empty, but not null values for redis password and port
2022-02-15 23:04:43 +01:00
Philipp
3d8e82d95d
Merge pull request #11141 from urbalazs/language-names
...
Add native language names to language selector & fix config during install
2022-01-23 20:55:40 +01:00
Philipp
150e3a6f42
Add DEVELOP flag for StorageManager for testing purpose only
2022-01-23 20:40:38 +01:00
Philipp
9bcd0ffac8
Fix Addons-Load for StorageManager
2022-01-23 20:23:44 +01:00
Philipp
71c7669066
Fix config usage during install process
2022-01-23 20:08:48 +01:00
Philipp
5fcb3e4901
Remove unused field
2022-01-23 20:08:33 +01:00
Philipp
b123762459
Move language names to constant
2022-01-23 20:08:12 +01:00
Michael
9414edd64a
API: Functionality moved to new places
2022-01-06 07:34:16 +00:00
Balázs Úr
b08718fcc3
Add native language names to language selector
2022-01-05 00:33:04 +01:00
Philipp
35a2fd45af
Make Response even more compatible ..
2022-01-04 20:59:28 +01:00
Philipp
543e4be0a6
Replace 'REQUEST_METHOD' with App\Arguments::getMethod()
2022-01-04 20:59:28 +01:00
Philipp
71272e07ee
temporary merge response header into static *exit() methods because of compatibility issues
2022-01-04 20:59:27 +01:00
Balázs Úr
733f3de9ed
Add missing copyright text
2022-01-02 10:49:50 +01:00
Philipp
322b7c856c
Merge pull request #11129 from urbalazs/copyright-2022
...
Update copyright
2022-01-02 09:45:35 +01:00
Balázs Úr
e56a53647b
Update copyright
2022-01-02 08:27:47 +01:00
Philipp
6ca5668ac1
Migrate distributed cache config value
2021-12-14 10:14:24 +01:00
Philipp
5b5cea9335
Add explicit Session caching
2021-12-13 20:09:00 +01:00
Philipp
ab960e8596
Update src/Core/Logger/Type/SyslogLogger.php
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2021-12-13 07:29:21 +01:00
Philipp
2413627de9
Enhance syslog logging
2021-12-12 22:45:22 +01:00
Michael
33f080d118
Remove obsolete network guessing function
2021-12-07 07:28:55 +00:00
Hypolite Petovan
423892b814
Replace references to NOW() in SQL queries with a DateTimeFormat generated parameter
2021-12-04 17:53:16 -05:00
Hypolite Petovan
80da47921e
Replace references to UTC_TIMESTAMP in SQL queries with a DateTimeFormat generated parameter
2021-12-04 17:53:08 -05:00
Philipp
b5d2d32b44
Split and delete ModuleController
...
- $moduleName is part of the argument string => App\Arguments
- $isBackend boolean already part of App\Mode::isBackend()
- $module is now the direct return of App\Router::getModule()
- ModuleController::run() moved to BaseModule::run()
2021-11-27 12:39:45 +01:00
Hypolite Petovan
84e7f65d52
Move sending follow message to remote server to Protocol class
2021-11-21 18:59:36 -05:00
Hypolite Petovan
8d550ad4e8
Merge pull request #10961 from annando/deprecated
...
Removed and replaced deprecated functionalities
2021-11-07 10:53:17 -05:00
Michael
eb1b2256a0
Removed and replaced deprecated functionalities
2021-11-07 14:00:47 +00:00
Philipp
882925b824
Update src/Core/Worker/Repository/Process.php
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2021-11-07 13:29:38 +01:00
Philipp
fb908aca6d
Update src/Core/Worker/Factory/Process.php
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2021-11-07 13:29:33 +01:00
Philipp
c7be395e6a
use static table-variable
2021-11-06 20:33:02 +01:00
Philipp
5350e0852d
Add hostname
to Process
entity
2021-11-06 20:21:01 +01:00
Philipp
9a5e6642b6
Add Unique-Id for each worker execution
2021-11-05 21:07:14 +01:00
Philipp
da86581bf2
Deactivating isMinMemoryReached()
2021-11-05 20:52:45 +01:00
Philipp
62bacbb833
Remove 'maxloadavg_frontend' restriction in Friendica
2021-11-05 20:52:43 +01:00
Philipp
c2b5eb2838
Improve repository usage
2021-11-05 20:52:34 +01:00
Philipp
7c6554451e
Update src/Core/System.php
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2021-11-05 20:52:33 +01:00
Philipp
63960bca05
Update src/Core/Worker.php
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2021-11-05 20:52:33 +01:00
Philipp
807c95b314
Update src/Core/System.php
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2021-11-05 20:52:32 +01:00
Philipp
a7487ee50d
Fix PID at forking
2021-11-05 20:52:31 +01:00
Philipp
32f0c3fb9c
Adds DI::flushLogger() to renew Logger instances
2021-11-05 20:52:31 +01:00
Philipp
7637ae1dcc
Fixup command argument
2021-11-05 20:52:31 +01:00
Philipp
38f70cc55a
Refactor Process for new paradigm
2021-11-05 20:52:28 +01:00
Michael
99a93a422b
todo removed
2021-11-04 23:01:41 +00:00
Michael
63da4a75e9
The boot.php had been cleared of most functions
2021-11-04 20:29:59 +00:00
Michael
24ee87224f
Replaced deprecated "log" function call
2021-11-03 23:19:24 +00:00
Michael
d56fc6d18f
Improve the JSON output of the log entries
2021-11-02 08:06:55 +00:00
Michael
c3964a8735
Using internal redirect in case of missing scheme
2021-11-01 21:21:03 +00:00
Michael
516018861e
Merge remote-tracking branch 'upstream/develop' into error-handling
2021-10-31 05:25:39 +00:00
Michael
4236a9a105
Improved http error handling
2021-10-29 23:21:07 +00:00
Philipp
22663c4ae5
Move Introspection to Logger package
2021-10-29 12:37:22 +02:00
Philipp
f4ea74447e
Add Feedback :-)
2021-10-29 11:37:09 +02:00
Philipp
409d909d0f
Restructure HTTPClient for new paradigm
2021-10-28 20:01:03 +02:00
Philipp
fa55928ea3
Replace own VoidLogger with PSR-Standard NullLogger()
2021-10-28 20:01:03 +02:00
Philipp
184f6cc255
Restructure Logger to new paradigm
2021-10-28 20:01:02 +02:00
Philipp
7c38647573
Cleanup namespace
2021-10-27 20:06:04 +02:00
Philipp
2ab0d06996
Restructure Storage to new paradigm
2021-10-27 20:00:19 +02:00
Philipp
58eea1adaa
Cleanup namespaces
2021-10-26 22:11:10 +02:00
Philipp
b216317477
Refactoring Core class structures ...
2021-10-26 22:11:09 +02:00
Philipp
57b4c008cb
Restructure Session to follow new paradigm
2021-10-26 22:11:07 +02:00
Philipp
ff1a812e1a
Restructure Lock to follow new paradigm
2021-10-26 22:11:06 +02:00
Philipp
ab83d0dd27
Restructure (P)Config to follow new paradigm
2021-10-26 22:11:06 +02:00
Philipp
68046573a4
Restructure Cache to follow new paradigm
2021-10-26 22:11:06 +02:00
Hypolite Petovan
8af86af3d9
Add new developer test console command
2021-10-26 11:42:22 -04:00
Hypolite Petovan
bcd3cf0bc0
Merge pull request #10923 from nupplaphil/feat/error_handling
...
Add extended ErrorHandling
2021-10-24 22:41:38 -04:00
Philipp
8f688b2a89
Update ErrorHandler
2021-10-24 19:44:38 +02:00
Philipp
5d92713a8e
Rename Depository to Repository
2021-10-23 21:45:36 -04:00
Philipp
acb06af28d
Add extended ErrorHandling
2021-10-23 20:58:38 +02:00
Philipp
5fecc9ecf7
Adapt ProfileField & Fix current PermissionSet Usage at ProfileFields
2021-10-18 23:32:44 +02:00
Philipp
838cdac5d1
Move ProfileFieldRepository::migrateFromLegacyProfile() & delete old repository
2021-10-18 23:32:41 +02:00
Philipp
5d0b7fd87b
Merge pull request #10882 from MrPetovan/task/10865-contact-purge
...
Add new purge contact content option to admin contact blocklist
2021-10-17 23:44:28 +02:00
Hypolite Petovan
f80478f262
Improve argument handling in Core\Worker::add
...
- The argument name made it unclear the first argument is supposed to be a priority number
2021-10-16 19:19:56 -04:00
Hypolite Petovan
66c0431144
Switch available contact selection to private-supporting networks in ACL
2021-10-16 16:00:41 -04:00
Michael
27b9da3df5
replace "p" with higher level database functions
2021-10-12 05:53:29 +00:00
Hypolite Petovan
880c2148c2
Fix overly strict return value for revokeFollow methods
2021-10-09 02:08:04 -04:00
Hypolite Petovan
201d728b9e
Fix addon reloading
...
- The wrong variable was used to uninstall/install addons, which led to absolutely nothing done
2021-10-09 00:12:11 -04:00
Hypolite Petovan
80a8cd86c4
Merge pull request #10836 from nupplaphil/feat/depository_permissionset
...
Migrate PermissionSet to Depository paradigm
2021-10-08 09:39:39 -04:00
Philipp
62eb16e9ad
Migrate PermissionSet to Depository paradigm
2021-10-07 19:53:38 +02:00
Hypolite Petovan
456ae169ab
Fix overly strict return value for terminateFriendship methods
2021-10-06 20:18:44 -04:00
Hypolite Petovan
c0f03889c5
Pass correct hook data for support_follow and support_revoke_follow
2021-10-06 12:07:48 -04:00
Philipp
065b46c721
Split Storage usage and Storage configuration
2021-10-05 20:07:12 +02:00
Hypolite Petovan
6db211568a
Remove most calls to date_default_timezone_* calls
...
- It was wrongly used to set the node-wide ot user-specific timezone
- It is now fully managed from the App object
- Add a static variable to DateTimeFormat maintain the convenient local() method
2021-10-03 13:42:31 -04:00
Michael Vogel
2a442952b6
Merge pull request #10800 from MrPetovan/task/10739-block
...
Add block and unblock hooks
2021-10-02 23:39:06 +02:00
Hypolite Petovan
66fec8944f
Add block and unblock hooks
2021-10-02 17:30:40 -04:00
Philipp
80753ed1b6
Remove disturbing/superfluous logging messages
2021-10-02 23:11:33 +02:00
Hypolite Petovan
c4a4473cd0
Remove the obsolete parameter $two_way from terminateFriendship methods
...
- Follow revokation is now done independently
2021-10-02 16:14:22 -04:00
Hypolite Petovan
72fae04e97
Add revoke follow feature
...
- Add new follow revoke module
- Add new hooks: revoke_follow, support_follow, support_revoke_follow
- Add link in contact page action menu
2021-10-02 14:01:46 -04:00
Hypolite Petovan
797391e1d8
Rework contact termination to separate protocol-level and contact-level
...
- Mail and Feed contacts are now removed automatically on relationship termination
- Added logging and notice messages for different results
2021-10-02 08:31:59 -04:00
Michael
19d5987c9d
Sanitize the addon author if it is not a valid URL but a handle
2021-10-01 13:25:00 +00:00
Michael
80b13ec232
Fix translations for singular/plural strings
2021-08-31 05:51:08 +00:00
Philipp
13a91e63aa
Rename DI::httpRequest() into DI::httpClient()
2021-08-25 21:54:54 +02:00
Philipp
505100bdd7
Rename HTTPRequestOptions to HTTPClientOptions
2021-08-25 21:45:15 +02:00
Philipp
0cafa871f1
Use HTTPRequestOptions constants for HTTPClient::get()
2021-08-25 21:31:30 +02:00
Philipp
2356221aba
Fixup HTTP headers for httpClient requests
2021-08-25 14:22:43 +02:00
Tobias Diekershoff
ae6e13815d
rewording the encouragement and regen of the messages.po
2021-08-17 08:38:06 +02:00
Tobias Diekershoff
6cd9f26771
add encuragement
2021-08-17 08:38:06 +02:00
Tobias Diekershoff
e16e9bd929
typo
2021-08-17 08:38:06 +02:00
Tobias Diekershoff
cafb91ec62
Issue 10514: add TLS check to the installer
...
This PR adds a check to the installer which tries to determine whether the
request to the installer was made over an HTTPS line or not.
I've only tested it with an Apache2 server, but there it works.
Addresses #10514
2021-08-17 08:38:06 +02:00
Philipp
db6fded5d2
Update src/Core/StorageManager.php
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2021-08-16 23:32:32 +02:00
Philipp
99239e3d99
Fix usage
2021-08-16 23:27:43 +02:00
Philipp
1901716479
Lower complexity for valid backends (replace hashmap with a "simple" name array)
2021-08-16 23:27:43 +02:00
Philipp
c17bc55158
Introduce InvalidClassStorageException and adapt the code for it
2021-08-16 23:27:42 +02:00
Philipp
d0536ebea7
Rename ISelectableStorage to IWritableStorage
2021-08-16 23:27:42 +02:00
Philipp
57438afbb3
- Moved the description for the specific storage exception first
...
- Introduced exceptions for try to get invalid storage
- ReferenceStorageException now extends StorageException
2021-08-16 23:27:42 +02:00
Philipp
29c7552df5
Refactor IStorage
2021-08-16 23:27:42 +02:00
Michael
28090bd793
Get rid of App->user completely
2021-08-08 19:30:21 +00:00
Michael
fc283ab928
Remove direct calls to App->user
2021-08-08 10:14:56 +00:00
Michael
2951243b07
Preparation for delayed posts
2021-07-28 22:22:00 +00:00
Michael
c89533a70b
Support for stacked profiler analysis
2021-07-27 04:57:29 +00:00
Michael
5a87ccf026
Getter/Setter for theme info
2021-07-25 19:39:10 +00:00
Michael
0bbe954316
Getter/Setter for queue
2021-07-24 22:08:33 +00:00
Michael
2502a9192d
Many more app-variables removed
2021-07-24 10:09:39 +00:00
Michael
a06d699480
Item cache related functionality removed
2021-07-05 04:57:50 +00:00
Michael
8e9433f2e9
Fix: Fetching of non public photos
2021-07-01 18:05:54 +00:00
Hypolite Petovan
681c7c0187
Add ExternalStorage dependency to StorageManager
...
- Since ExternalStorage isn't instantiated automatically by Dice, we have to provide the dependency manually in StorageManager->getByName
- This requires StorageManager to take one one additional dependency
- Tests are updated with this additional dependency
2021-06-27 23:15:46 -04:00
Michael
9276f6823b
New class for external resources
2021-06-24 17:30:22 +00:00
Michael
fe07dc828b
Fix noscrape publishing and pulling, added header
2021-06-17 11:23:32 +00:00
Michael
ae5f57233e
Issue 10392: Avoid "Friendica can't display this page at the moment"
2021-06-16 13:23:07 +00:00
Tobias Diekershoff
55dda47f39
Issue 10293: mention the required function in the error message
2021-05-23 07:50:32 +02:00
Michael
829a268faf
Issue 10184: Fix directory search results
2021-05-07 18:38:04 +00:00
Matthew Exon
ba4492ea81
Add console contact command
2021-05-03 18:00:36 +02:00
Philipp
d1d5cb2857
Fixed new "user config" console feature
...
- Replaced "DI::" call with constructor injection
- Added return value for IPConfig::load() and PreloadPConfig::load()
2021-04-28 22:13:00 +02:00
Matthew Exon
5421f53a76
Add "user config" console command to administer user-specific configuration
2021-04-27 19:46:16 +02:00
Tobias Diekershoff
2a431b580f
Merge branch 'develop' of https://github.com/friendica/friendica into develop
2021-04-26 09:49:48 +02:00
Philipp
f10c24c83a
remove warning
2021-04-17 13:24:37 +02:00
Philipp
6a414b0543
Fix L10n in case of empty strings array
2021-04-17 13:24:37 +02:00
Hypolite Petovan
d666b6cb42
Merge pull request #10116 from mexon/mat/addon-console-command
...
Add "addon" console command to enable and disable addons
2021-04-02 14:34:23 -04:00
Matthew Exon
3545e9cfa8
Add "addon" console command to enable and disable addons
2021-04-02 18:56:24 +02:00
Balázs Úr
befc2af504
Merge branch '2021.03-rc' into copyright-2021
2021-03-29 08:45:21 +02:00
Balázs Úr
054c301ef0
Update copyright
2021-03-29 08:40:20 +02:00
Philipp
b2a7c5ff6c
Fix JIT Config Adapter caching
2021-03-28 23:28:47 +02:00
Philipp
26bd1bb26d
FollowUp #10086
2021-03-27 22:42:11 +01:00
Philipp
3327e6d979
Add EOL to help string
2021-03-27 13:59:32 +01:00
Philipp
a831242095
Workaround for cURL troubles in container environments
...
Addresses https://github.com/friendica/docker/issues/134
2021-03-27 13:52:05 +01:00
Michael
adb0b460ef
Fixes PHP Warning: " array_unshift() expects parameter 1 to be array, int given"
2021-03-24 19:52:53 +00:00
fabrixxm
a861eb65af
Storage: small fixes to 'storage move'
...
- stop command if current storage backend is still "legacy"
- write destination backend name in log
2021-03-12 18:24:45 +01:00
utzer
e20e62ffd6
Part of bugfix for storage move problem
...
@fabrixxm is this already good to change?
2021-03-12 09:55:55 +01:00
Michael
d2c734c025
Issue 9986: Improve contact search
2021-03-06 21:52:26 +00:00
Michael
99a145f7cf
Fixes several database errors, removes "relation" handling
2021-02-25 05:13:49 +00:00
Tobias Diekershoff
beccd12a2b
Issue 9064: referring INSTALL.txt now points to doc/INSTALL.md
2021-02-23 09:57:33 +01:00
Michael
312c01a517
Several speed improvements (magiclink, caching, indexes)
2021-02-17 18:59:19 +00:00
Michael
6e1483545e
Support for message delivering via uri-id
2021-02-14 14:24:48 +00:00
Michael
c3398511b4
New table "post-content"
2021-01-30 22:03:53 +00:00
Michael
8eb3bddc2a
Reduce the parameter chaos by splitting the update function
2021-01-30 13:31:59 +00:00
Michael
90f1175cf5
Setting "maintenance" for pre and post updates
2021-01-30 07:50:20 +00:00
Hypolite Petovan
9a9b43bd6c
Fix wrong uses of DI::l10n() in Core\Update
...
- Fix typos in version number in translated messages
2021-01-21 10:36:52 -05:00
Michael
4157db5473
"item" is replaced by "post-view" / postupdate check added
2021-01-17 20:32:13 +00:00
Michael
df135c31fe
Merge remote-tracking branch 'upstream/develop' into no-frontend-worker
2021-01-07 10:44:12 +00:00
Michael
594b1a75b5
Use the correct pid
2021-01-05 21:48:29 +00:00
Michael
6ef0f9646f
Set the new pid
2021-01-05 21:39:53 +00:00
Michael
2f8e873cc7
Wait for parent
2021-01-05 16:47:55 +00:00
Michael
17fbe5c299
Delete IPC entries
2021-01-05 16:01:05 +00:00
Michael
7e89bf5af8
Wait for child being ready
2021-01-05 10:18:25 +00:00
Michael
69c7e9af20
Let the worker run for an hour in daemon mode
2021-01-04 09:20:44 +00:00
Michael
74d7d7e164
Check for childf status
2021-01-03 22:57:25 +00:00
Michael
d70d180e4b
Merge remote-tracking branch 'upstream/2020.12-rc' into fork
2021-01-03 10:06:17 +00:00
Michael
10b035b51a
Additional worker cooldown
2021-01-02 19:33:50 +00:00
Michael
7a03b72060
Improved daemon test
2021-01-02 08:43:55 +00:00
Michael
78f67c1e0e
Check for reaching the memory limit
2021-01-01 23:10:38 +00:00
Michael
a81ac835a1
The frontend worker is removed
2021-01-01 23:05:26 +00:00
Michael
9a6141dcbe
Use "pcntl_fork" to fork processes
2021-01-01 19:35:29 +00:00
Michael
5dcc02594c
Some more log levels
2020-12-31 20:44:33 +00:00
Michael
d1ea529cfb
Issue 9704: Improved log levels
2020-12-31 20:14:13 +00:00
Hypolite Petovan
5f148dcb42
Add temporary console command to fix workerqueue row with corrupted parameter data
...
- It should be reverted just before the 2020.12 release
2020-12-15 00:20:49 -05:00
Michael Vogel
33930b0bd9
Apply suggestions from code review
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2020-12-09 06:58:19 +01:00
Michael
dd94fb1242
Check for bad worker priorities
2020-12-08 21:58:32 +00:00
Michael
edbdfbae6b
workerqueue now has a "command" field
2020-12-03 15:47:50 +00:00
Michael
3f3f56db57
Poll interval function moved to feed class, first steps for delayed posts
2020-11-30 05:39:12 +00:00
Michael
818c064c0a
The notifications parameters are now simplified
2020-11-25 19:56:39 +00:00
Hypolite Petovan
ca823244cc
Don't assume addons must have an *_install function
...
- Module-only addons don't have any
2020-11-21 23:19:03 -05:00
Michael
aec9f1ebf0
Remove unused config variable
2020-11-21 15:15:58 +00:00
Michael
1de6251627
Code cleaning
2020-11-21 14:58:48 +00:00
Michael Vogel
b40218eb0b
Immediately fail when lock hadn't been acquired to prevent stocked updates
2020-11-21 14:17:14 +01:00
Michael Vogel
2a1c82cf05
Avoid multiple database update mails, changed log level
2020-11-21 13:28:06 +01:00
Michael
1bc76fdb6d
Watchdog mode to check if the daemon is running
2020-11-20 19:50:08 +00:00
Michael
0edc058a17
Ensure that the daemon is called faster and more reliably
2020-11-18 13:29:10 +00:00
Michael
4965d6aa54
The profile page does now shows reshared items
2020-11-03 19:24:47 +00:00
Michael
fd0e5cfe48
Added logging for executing child processes
2020-10-24 18:40:15 +00:00
Michael
592ac53ffc
Worker priority / no shadow worker
2020-10-24 08:05:03 +00:00
Philipp
a6fc9cd32e
Remove $binary flag for HTTPRequest::get(), HTTPRequest::fetch(), HTTPRequest::fetchAll() (deprecated since PHP 5.1.3)
2020-10-18 20:56:31 +02:00
Michael Vogel
2c0db7546b
Update src/Core/Worker.php
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2020-10-17 15:54:52 +02:00
Michael
7efd01880c
Define a maintenance window
2020-10-17 12:39:42 +00:00
Hypolite Petovan
9537a6d0f7
Remove unused App->force_max_items property
2020-10-13 07:52:13 -04:00
Philipp
d39ee428f0
Introduce "static/env.config.php" for environment variable mapping to config cache entries
...
- Added new database.port config value (used for MYSQL_PORT)
- Removed now obsolete db environment variable functionality
- Added functionality to load env variables (overwrites DB based cached)
2020-10-06 20:43:29 +02:00
Philipp
0f3e4255ca
Introduce Config\Cache Source indicators (File, DB, Server Env)
2020-10-04 20:41:31 +02:00
Hypolite Petovan
a852455d0e
Merge remote-tracking branch 'friendica/stable' into develop
...
# Conflicts:
# composer.lock
2020-09-20 15:32:58 -04:00
Philipp
c9e510d4fd
Use getmypid() as dependency (improve testing)
2020-09-19 20:28:01 +02:00
Michael
c36bfcf17d
Changed loglevels in the worker
2020-09-17 17:57:41 +00:00
Michael Vogel
0fe2146338
Apply suggestions from code review
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2020-09-17 06:33:31 +02:00
Michael
178455928a
We can now manage relay servers and can send content to them
2020-09-15 17:45:19 +00:00
Philipp
cdb61be06f
Rewrite Process Model/Core
2020-09-15 18:16:44 +02:00
Hypolite Petovan
043e04f484
Remove confirm template obsolete uses (except for contacts)
...
- Remove obsolete explode_querystring() function
- Remove $extra_inputs template variable
2020-09-12 09:09:15 -04:00
Hypolite Petovan
5f5b97dad6
Create self-only ACL template and helper method
2020-09-07 19:27:32 -04:00
Hypolite Petovan
4a4d0f04cb
Fix new private message recipient input
...
- Add new private message recipient ACL template
- Remove now redundant theme private message templates
2020-09-03 10:01:58 -04:00
Hypolite Petovan
a844fd8f58
Move ACL full selector template to subfolder
...
- Fix display overflow in contact complete suggestion box
2020-09-03 10:00:20 -04:00
Michael
31638d4742
Added and improved logging for the update process
2020-08-30 18:57:09 +00:00
Tobias Diekershoff
e402026b83
refert to doc/INSTALL.md instead of README.txt in the installer
2020-08-30 10:12:42 +02:00
Michael
d8d2cdc6ef
Only c heck every 5 seconds for the system health
2020-08-29 13:01:58 +00:00
Michael
8148d9dc9d
Unclaim on end / don't refetch
2020-08-29 11:26:40 +00:00
Michael
069786cd7f
Simplified the code
2020-08-29 10:44:38 +00:00
Michael
f9152ce140
Worker: Fetch jobs for multiple workers
2020-08-29 09:03:50 +00:00
Michael
98dd15ec9a
Adding a cooldown phase for the daemon
2020-08-19 18:21:40 +00:00
Michael Vogel
b5cca1ab93
Some small performance tweaks (indexes)
2020-08-18 12:50:18 +02:00
Hypolite Petovan
7019e02f61
Fix unexpected return value of RedisCache->delete()
...
- Address https://github.com/friendica/friendica/issues/8876#issuecomment-671025374
2020-08-09 10:45:06 -04:00
Hypolite Petovan
bc02ad89d0
Add support for empty session write
...
- Ignored empty data left session intact, leading to unexpected behaviors
2020-08-07 22:50:16 -04:00
Hypolite Petovan
b3dcecf987
Revert "Actually destroy session on logout"
...
This reverts commit 077b57ecb3
.
2020-08-07 22:49:48 -04:00
Hypolite Petovan
077b57ecb3
Actually destroy session on logout
2020-08-06 22:59:09 -04:00
Michael
f09d9bc9cc
Remove url caching, locking cleanup
2020-08-06 18:53:45 +00:00
Hypolite Petovan
470079c37c
Improve documentation of visitor-related functions
2020-08-04 22:44:42 -04:00
Michael
a7d75702cc
"Contact\User" class created
2020-08-04 04:47:02 +00:00
Michael
cc85bc4156
Replace "gcontact" with "contact" - imroved suggestions
2020-07-30 14:08:32 +00:00
Michael Vogel
74bc3de472
Merge pull request #8931 from MrPetovan/task/2020-performance-improvements
...
Various performance improvements
2020-07-28 07:15:02 +02:00
Hypolite Petovan
cd84f9a921
Reduce number of calls to Hook::delete when uninstalling addons/themes
...
- Add a sweeping Hook deletion on theme uninstall (like for addons)
2020-07-27 08:24:55 -04:00
Michael
fd1da74980
Fix fatal error because of unknown function "fetchUrl"
2020-07-27 11:50:36 +00:00
Hypolite Petovan
1d0cd7328b
Add dispatch data caching in App\Router
...
- Add new cache key "routerDispatchData"
- Update Dice dependencies since Router constructor signature changed
2020-07-27 02:33:08 -04:00
Hypolite Petovan
bd1f4ebbde
Refactor Hook and Addon to systematically use Hook::delete
2020-07-27 02:33:08 -04:00
Hypolite Petovan
afb882048e
Generate callstack value from inside Profiler::saveTimestamp
...
- Save a massive amount of time computing callstacks when profiling is disabled
2020-07-27 02:33:05 -04:00
Hypolite Petovan
19141b1bcf
Add offset parameter to System::callstack
...
- Enable its use in centralized methods without polluting the stack
2020-07-27 02:31:42 -04:00
Michael Vogel
398e65d66b
Merge pull request #8911 from MrPetovan/task/curl_DI
...
Introduce "HTTPRequest" class
2020-07-25 09:50:20 +02:00
Michael
3fc3ded750
Useless info messages removed
2020-07-23 06:11:21 +00:00
nupplaPhil
1124090dbc
Cleanup dependencies
2020-07-21 03:19:04 -04:00
nupplaPhil
657d08f09f
Rename "fetchUrl" and "fetchUrlFull" to "fetch" and "fetchFull"
2020-07-21 03:15:53 -04:00
nupplaPhil
7029012f27
Rename "HTTPRequest::curl()" to HTTPRequest::get()
2020-07-21 03:14:01 -04:00
nupplaPhil
1aa07f87a4
Make "HTTPRequest::fetchUrl" dynamic
2020-07-21 03:04:58 -04:00
nupplaPhil
3b4cf87c95
Make "HTTPRequest::fetchUrlFull" dynamic
2020-07-21 03:02:52 -04:00
nupplaPhil
2973ed6448
Make "HTTPRequest::curl" dynamic
2020-07-21 03:01:12 -04:00
nupplaPhil
5344efef71
Move post/curl/fetchUrl/fetchUrlFull to own class "Network\HTTPRequest"
2020-07-21 02:56:10 -04:00
Michael
5bf813d0ec
Use "failed" field
2020-07-19 11:42:23 +00:00
Michael
70699878ee
Replaced more calls of "Probe::uri" with "Contact::getByURL"
2020-07-16 19:22:38 +00:00
Michael
b8682190de
Fix fallback on unknown contact
2020-07-16 04:18:33 +00:00
Hypolite Petovan
631095eefd
Merge pull request #8883 from annando/replace-getdetails
...
Replaced "getDetailsByURL" with "getByURL/getByURLForUser"
2020-07-15 13:49:27 -04:00
Michael
6d3949d54a
Changed default value
2020-07-15 17:29:52 +00:00
Michael
e374aecc46
Changed parameter order for "getbyURLForUser"
2020-07-15 17:22:12 +00:00
Michael
d9c6a46ffe
Replaced "getDetailsByURL" with "getByURL/getByURLForUser"
2020-07-15 04:42:04 +00:00
Hypolite Petovan
059087f998
Suppress all emails when Update::run is ran with $sendEmail = false
...
- Address Renderer crash in the App-less context of Console
2020-07-13 17:22:21 -04:00
Michael
bbb2f1fcf5
Use "0" as default
2020-07-13 16:24:44 +00:00
Michael
5a6887fb2e
Use "jsonexit"
2020-07-13 13:26:09 +00:00
Michael
fcb37449f3
Fix unneeded database functions in the callstack
2020-07-10 07:01:28 +00:00
Hypolite Petovan
20a4799902
Update references to the friendica/friendica-directory stable branch
2020-06-30 15:25:17 -04:00
Hypolite Petovan
9c6fbc6a74
Update references to the friendica/friendica stable branch
2020-06-30 15:25:16 -04:00
Hypolite Petovan
779099a491
Improve language of console globalcommunitysilence help line
2020-06-03 00:03:58 -04:00
Michael
e374e5752a
Changed deprecated log calls
2020-06-01 13:51:58 +00:00
Michael Vogel
e315bc3eae
Merge pull request #8657 from MrPetovan/bug/8653-catch-template-engine-errors
...
Catch template engine errors
2020-05-19 00:22:45 +02:00
Hypolite Petovan
8b05af176c
Add detailed error messages for admin user in Core\Renderer and Render\FriendicaSmartyEngine
2020-05-18 18:10:21 -04:00
Hypolite Petovan
64e89a516d
Restore default parameter value in Core\Renderer::replaceMacros
2020-05-18 10:01:51 -04:00
Hypolite Petovan
ef9b51e631
Replace direct error output and exit by logger + exception in Core\Renderer
...
- Same in Render\FriendicaSmartyEngine
2020-05-18 01:21:58 -04:00
Hypolite Petovan
c6ba92c43d
Refactor template engine code
...
- Convert ITemplateEngine interface to abstract class
- Remove dependency to App in FriendicaSmarty and FriendicaSmartyEngine
- Normalize replaceMacro parameter behavior using Smarty template string prefixes
- Remove obsolete FriendicaSmarty->parsed method
- Update unused Smarty directory paths
2020-05-18 01:18:41 -04:00
Michael
a3c4021f12
Issue 8514: Make paging for searcg items work again
...
Fixes #8514
2020-05-17 13:51:56 +00:00
Michael
6f3b46217e
Fix for "Undefined index: profile_url"
2020-04-28 19:36:10 +00:00
Michael
9ccdbd9349
Added forgotten DBA::close
2020-04-28 05:55:17 +00:00
Hypolite Petovan
1b0a8ec5c0
Merge pull request #8545 from nupplaphil/bug/subdir
...
Template Engine with Subdirectory
2020-04-26 14:31:30 -04:00
Philipp
f5f62d3f42
Template Engine with Subdirectory
...
- Use explicit root path for template engine
- Replace "__DIR__" calls in addons with subdirectories
- Fixes local tests, where call is made out of '/' and not '/vagrant/'
2020-04-26 15:45:25 +02:00
Michael
1c980c5b29
The workerqueue is now using a view as well
2020-04-24 18:50:36 +00:00
Michael
d4480ae4be
Simplified code
2020-03-10 13:13:43 +00:00
Michael
8e421f0893
Fix uninstall of installed addons
2020-03-09 23:28:37 +00:00
Hypolite Petovan
39a87b1f54
Add check for semi-colon existence in theme file comment lines
...
- Address https://github.com/friendica/friendica/issues/8000#issuecomment-592946450
2020-03-01 14:19:46 -05:00
nupplaPhil
f3f764bc39
Add new possibility to add a user per console
2020-02-29 17:10:27 +01:00
nupplaPhil
4d436c10df
Move "NewPassword" to a common "user" console command
2020-02-29 17:10:26 +01:00
Michael
1b87a97a81
Remove "hidewall" check from ACL
2020-02-22 08:54:28 +00:00