Commit graph

665 commits

Author SHA1 Message Date
f047944b2d Switch all item deletion logging to info level 2020-03-04 15:59:19 -05:00
86a6268aac Add guid context to item deletion logging 2020-03-03 12:01:03 -05:00
6ae5f705b6 Rename Item::delete* methods to Item::markForDeletion* 2020-03-03 01:48:29 -05:00
dd613cda45
Merge pull request #8357 from annando/private
Support unlisted public posts
2020-03-03 01:19:07 -05:00
25dceccf77 Add debug for item deletion 2020-03-02 09:30:34 -05:00
ca1b92bb34 Support unlisted public posts 2020-03-02 07:57:23 +00:00
nupplaPhil
85dc9bb96b
Add license info at Friendica PHP files 2020-02-09 16:18:46 +01:00
nupplaPhil
23c64b9a11
Add license info at Friendica classes 2020-02-09 15:45:36 +01:00
4f362f6693 Asynchronously add contacts to avoid timeout problems 2020-02-06 00:00:00 +00:00
nupplaPhil
f21196df7c
improvements 2020-02-01 00:27:46 +01:00
nupplaPhil
34f4aedb87
Move mod/fsuggest to src/Module/SuggestFriends 2020-01-31 23:50:46 +01:00
18cfd8dfaa Remove references to deprecated profile.is-default and profile.profile-name fields 2020-01-22 19:42:37 -05:00
04d620fc2f
Merge pull request #8142 from nupplaphil/task/di_config
CleanUp Config namespace
2020-01-19 22:22:57 -05:00
ed9392469e
Remove unneeded Config namespace usages 2020-01-19 22:50:44 +01:00
21640ec5d8
Add missing Friendica\DI namespace to files (PHPStorm inspection) 2020-01-19 21:26:42 +01:00
3411ced833
Move Config::set() to DI::config()->set() 2020-01-19 21:21:53 +01:00
6c36fd9e01
Move Config::get() to DI::config()->get() 2020-01-19 21:21:13 +01:00
ab8997f9db
Merge pull request #8140 from annando/mail-probe
Don't update mail contacts when polling
2020-01-19 15:05:00 -05:00
3bd99bccba Don't update mail contacts when polling 2020-01-19 19:27:30 +00:00
d6efc90194
cleanup namespace usages for L10n 2020-01-19 16:31:33 +01:00
5dfee31108
Move L10n::t() calls to DI::l10n()->t() calls 2020-01-19 16:31:16 +01:00
cdbc94a9e1 Some more added lines 2020-01-19 09:51:37 +00:00
0a4119adaf @brief is removed completely 2020-01-19 06:05:23 +00:00
58f69481e6
Merge pull request #8130 from nupplaphil/task/di_pconfig
Move PConfig to DI::pConfig()
2020-01-18 13:57:57 -05:00
800694e9b3
Remove unused use statements & remove PConfig class 2020-01-18 17:02:59 +01:00
9e9429b56d
Move PConfig::get() to DI::pConfig()->get() 2020-01-18 16:50:57 +01:00
424c87195b
CleanUp Cache namespace
- Introduce enum "Duration"
- Introduce enum "Type"
- Move "Cache\Cache" to "BaseCache"
2020-01-18 15:41:19 +01:00
ccc7a71e54 Ensure that local contacts always are DFRN contacts 2020-01-16 06:43:21 +00:00
Philipp
33664ebb48
Merge pull request #8095 from annando/local-delivery
Ensure that local delivery is done via DFRN
2020-01-11 20:12:11 +01:00
28c54242a5 The value has to be assigned, not compared :-) 2020-01-11 18:28:04 +00:00
e6a054696d Ensure that local delivery is done via DFRN 2020-01-11 18:25:48 +00:00
Philipp
eba46e786a
Merge pull request #8094 from annando/deletecontact
Ensure that deleted contacts are really removed
2020-01-11 18:40:46 +01:00
0225e99d0a Ensure that deleted contacts are really removed 2020-01-11 17:22:37 +00:00
36190d1e79
Merge pull request #8072 from nupplaphil/task/Cache_to_DI
Replace Core\Cache wrapper with DI::cache() method
2020-01-10 08:46:03 -05:00
016cfcd846
Fixings
- Rename "facStorage" to "storageManager"
- Fix indentation
- Fix tests
2020-01-10 13:22:03 +01:00
08edeae2f9
Make Storage testable & add tests
- Making StorageManager dynamic (DI::facStorage())
- Making concrete Storage dynamic (DI::storage())
- Add tests for Storage backend and failure handling
- Bumping Level-2/Dice to "dev-master" until new release
- Using Storage-Names instead of Storage-Classes in config (includes migration)
2020-01-10 13:21:57 +01:00
a38b0f7eaf
Move remaining namespaces and delete Core\Cache.php 2020-01-07 00:51:02 +01:00
fe078410a1
Move Cache::get() to DI::cache()->get() 2020-01-07 00:45:49 +01:00
f68929633b
Move Cache::set() to DI::cache()->set() 2020-01-07 00:41:20 +01:00
182f390520
Move Cache::clear() to DI::cache()->clear() 2020-01-07 00:36:07 +01:00
48baa0be4b
Remove get_server() in favor of Search::getGlobalDirectory() 2020-01-05 00:04:55 +01:00
fb550a0172 Relocated functions from PortableContact to GServer 2020-01-01 21:29:36 +00:00
Philipp
75c74e8562
Merge pull request #8044 from annando/contact-adding
Don't add contacts when not needed
2020-01-01 20:38:34 +01:00
73b82d1455 Don't add contacts when not needed 2020-01-01 17:54:36 +00:00
3f34229752
Move redundant System::baseUrl() to DI::baseUrl() calls 2019-12-30 23:00:08 +01:00
50be94aa5e
Remove deprecated App::getHostName() - process methods to DI::baseUrl()->getHostName() 2019-12-29 20:17:47 +01:00
388b963714
Replace BaseObject class with DI::* calls 2019-12-29 20:17:38 +01:00
1de3f186d7
Introduce new DI container
- Adding Friendica\DI class for getting dynamic classes
- Replacing BaseObject::getApp() with this class
2019-12-29 20:16:55 +01:00
c975d0f799 Added documentation 2019-12-21 20:18:44 +00:00
537da657cc Renamed functions 2019-12-21 18:57:00 +00:00
33cb241ed3 Renamed function 2019-12-21 18:24:43 +00:00
26ac9a0063 "CheckServer" is now "UpdateGServer" 2019-12-21 18:11:51 +00:00
fab85255b6 Relocated functions 2019-12-21 06:39:22 +00:00
4024d725db Fixed logger call 2019-12-21 04:23:26 +00:00
01205f7d41 Merge remote-tracking branch 'upstream/2019.12-rc' into poco-cleanup 2019-12-20 22:25:32 +00:00
c9c408d5e5 Fix notice because of a missing subject 2019-12-20 21:47:10 +00:00
b4f690839a "CheckServer" added 2019-12-20 21:46:30 +00:00
ef9bdfdff2 Fix some errors 2019-12-20 21:27:49 +00:00
3c4f44a4ab "FetchPoCo" added 2019-12-20 21:21:25 +00:00
e5546dd40a "UpdateServers" added 2019-12-20 21:12:44 +00:00
5fee84f2e2 Added "DiscoverContacts" 2019-12-20 21:04:38 +00:00
bf852cc096 "UpdateSuggestions" added 2019-12-20 20:49:09 +00:00
a1ad549e0b Added UpdateServerDirectory 2019-12-20 20:37:21 +00:00
37f0519514 'SearchDirectory' created (moved out of 'DiscoverPoco' mess) 2019-12-20 20:30:13 +00:00
88a39ea999 "gprobe" removed 2019-12-20 06:47:18 +00:00
Michael Vogel
eb4cfa65d8 Fixed warning 2019-12-14 06:42:40 +01:00
49767e0555 Issue 7418: connections to forums should now work again 2019-12-09 21:19:20 +00:00
b8f81d5e7d Relocate check for announce 2019-12-08 22:04:32 +00:00
fb64010d7a Missing "use" 2019-12-08 21:40:06 +00:00
aa047278cc Reversed annouce check to have priority for AP 2019-12-08 09:01:06 +00:00
7ccbe3ee29 Transmit reshares and announce natively via Diaspora and AP whenever possible 2019-12-08 08:59:21 +00:00
41f8796ffc Delivery of reshares 2019-12-06 06:39:50 +00:00
22b89df348 Removed test logging 2019-11-27 22:00:43 +00:00
a6a79d9c7e Only transfer posts via mail 2019-11-27 21:59:11 +00:00
fda30bbb1f Removed test data 2019-11-23 11:44:25 +00:00
e220698ea1 E-Mail import: The item is now provided to the hook 2019-11-23 11:42:03 +00:00
2dcf6d9e2b Now using the correct function call ... 2019-11-23 04:31:40 +00:00
37bdafcc96 Use the "reply-to" header of the original post when answering via mail 2019-11-22 22:15:04 +00:00
d8da580869 Fix mail delivery via AP when the contact is hidden 2019-11-22 08:01:23 +00:00
ade926afc6 Storing the mail header in the item 2019-11-21 15:28:18 +00:00
Philipp Holzer
aa7be41728
Fix ACLFormatterTest
- Add nullable to expand() function again
- Add angle bracket support to toString()
2019-11-01 14:13:29 +01:00
44cc750f79 Some more warnings removed 2019-10-31 07:33:25 +00:00
422f0cbdbc Solve warning 2019-10-30 09:44:07 +00:00
dc065eed42 Fix several warnings and errors 2019-10-30 06:50:20 +00:00
Philipp Holzer
3eda62bfa6
Check null for acl-fields 2019-10-28 18:16:10 +01:00
Philipp Holzer
3897c74deb
Add docs 2019-10-25 00:10:20 +02:00
Philipp Holzer
07cea24430
Move Activity/Namespaces defines to constants 2019-10-24 21:40:12 +02:00
Philipp Holzer
f65f7f11c3
Move expand_acl to ACLFormatter::expand()
- including tests
2019-10-23 00:40:14 +02:00
1997938ae7 Remove remaining Logger log level in explicit Logger::debug call 2019-10-16 22:39:31 -04:00
146646c4d4 Replace deprecated calls to defaults() by ?? and ?: in src/ 2019-10-16 08:38:52 -04:00
83f670e9e5 Test against the thread parent as well 2019-10-07 04:19:12 +00:00
9c6fd5fc35 Fix communication issues when a contact is able to speak AP, but uses Diaspora 2019-10-06 21:59:23 +00:00
8238081d87 Replace obsolete functionality in "PortableContact" 2019-10-05 23:30:47 +00:00
a7e518acbd Readded the network parameter 2019-10-04 05:42:54 +00:00
d9a74bd5dd Code transitioning from PortableContacts.php to GServer.php 2019-10-03 23:33:41 +00:00
21e9e9f3c2 Remove obsolete function to guess the base url of a contact 2019-10-02 15:10:42 +00:00
aba23daeca Get rid of zombie introductions that reappear automatically 2019-09-22 10:51:34 +00:00
cf569425c6 Avoid a notice 2019-09-21 13:00:53 +00:00
c364a77d63 Always use direct DFRN transport on local contacts 2019-09-21 12:39:07 +00:00
6576f15164 Check the root directory is writable before copying .htaccess in Worker\Cron
- Addresses https://github.com/friendica/friendica/issues/7298#issuecomment-531454632
2019-09-14 06:30:41 -04:00
39133a1e0e Fix a notice because of invalid return data 2019-09-13 18:59:33 +00:00
323285216b We have to check for "0" in "rel" as well 2019-09-09 20:39:19 +00:00
f185f6fd3d Pending contacts part 2: Fix contact deletion / added cron job for repairs 2019-09-09 20:03:11 +00:00
16a0afbbae Fixes the delivery counter for edits 2019-09-04 21:06:25 +00:00
52d8b618f0 Type hints 2019-09-03 03:59:46 +00:00
db16f1a106 Increment the "failed" value on failed relay delivery 2019-09-02 03:37:45 +00:00
6af4c90dff Fix delivery counter / archive relay contacts 2019-09-02 03:25:05 +00:00
Michael Vogel
9b7432781b Don't transmit content to already archived contacts 2019-08-27 21:01:11 +02:00
7d50a086e0 Issue 7559: Merge contact duplicates 2019-08-26 15:51:56 +00:00
5a1a5a54dc Delivery count now counts the failed delivery attempts as well 2019-08-20 07:39:13 +00:00
0579252362 Add user meta-groups for followers and mutual contacts
- Both Group::expand and Item::enumeratePermissions now have a user id parameter to expand meta-groups
2019-07-29 20:31:46 -04:00
e556dfd475 Don't deliver nested comments to Diaspora if the previous comment wasn't from Diaspora 2019-07-28 19:13:17 +00:00
379a1a52e0 Avoid a warning 2019-07-16 19:58:47 +00:00
143566b853 Missing word 2019-07-15 04:36:55 +00:00
6170ddf58d Issue 7367: Only skip DFRN delivery when both author and owner of the post support AP 2019-07-15 04:33:00 +00:00
7b0a9ffd89 Update gcontact when public contact is updated 2019-07-03 05:46:35 +00:00
a248da8f2e
Merge pull request #7334 from annando/federated-protocol
New constant for federated protocols
2019-07-01 21:52:55 -04:00
6041f74df6 New constant for federated protocols 2019-07-01 18:00:55 +00:00
7abc42700c Fix missing App object in Worker\OnePoll 2019-06-30 12:16:18 -04:00
9bf065c9d8 Merge remote-tracking branch 'upstream/develop' into delivery-statistics 2019-06-28 14:08:54 +00:00
0a15222576 Collect data about used protocols for delivery 2019-06-28 09:03:58 +00:00
e48fbeda0a restore updating of the public contact 2019-06-28 04:34:01 +00:00
96651ae76d Fix a missing variable 2019-06-28 02:46:56 +00:00
d552db5c55 Polling functions are split into several functions 2019-06-27 20:38:09 +00:00
7e7acf5763 Last old query replaced in OnePoll.php 2019-06-27 16:21:23 +00:00
d4dc2a129e Replace old database queries 2019-06-27 13:30:26 +00:00
59b1a1aced Removing many now unused or duplicated tasks from OnePoll 2019-06-27 05:38:16 +00:00
9caa8bae35 Unused parts removed, query refurbished 2019-06-26 05:18:11 +00:00
9b49fd7f3f Changed logging 2019-06-25 17:36:24 +00:00
bca1dc1ca4 Moving functionality to the contact model 2019-06-24 03:25:01 +00:00
857469d16a Constantly updating public contacts 2019-06-23 09:27:40 +00:00
f41513f4ec Issue 7264: Count local delivery as well 2019-06-13 20:24:49 +00:00
16b9d9f199 Fix pixture posts to connectors / fix delivery counter for connector posts 2019-06-11 19:35:03 +00:00
d7d44e1af7
Merge pull request #7245 from annando/unify-constants
Fix delivery counter for poking / unify delivery commands
2019-06-10 11:59:40 -04:00
41dc243186 Fix delivery counter for poking / unify delivery commands 2019-06-10 14:19:24 +00:00
Philipp Holzer
cc7444d84d
Move internal recursion-counter to the end of all cur/fetchUrl parameters 2019-06-10 14:34:54 +02:00
52a3ece8b6 Added comments 2019-06-06 17:58:49 +00:00
44a49a8d7d Ensure that pokes are always send only via DFRN 2019-06-06 04:26:02 +00:00
9f026f1814 The only reason we don't defer is when it was a post to a relay 2019-06-01 11:28:37 +00:00
ecf809c7ae The delivery counter now counts only successful deliveries 2019-06-01 06:54:47 +00:00
a6cf036db2 Sending contact suggestions does work again 2019-05-19 17:59:37 +00:00
Michael Vogel
f3c2eb5b11 Fix receiver list for mails / only deliver mail via DFRN to legacy contacts 2019-05-18 11:09:13 +02:00
87b98b8249 Sending direct messages via AP does work now - receiving is pending 2019-05-14 17:50:45 +00:00
55557a8f18 Contacts with protocol = AP are now delivered only via AP 2019-05-11 05:58:22 +00:00
ad6f23b105 Make 7113 really work - now the query does contain AP 2019-05-06 20:53:22 +00:00
c46a9595cd Update every AP contact once a week 2019-05-06 20:28:40 +00:00
a4dffee5f4 Fix wrong error message when updated a contact 2019-05-02 19:22:43 +00:00
838f5762ac Remove failing require to non-existent file in Worker\CronJobs 2019-04-24 18:30:51 -04:00
dfa01f9265
typo 2019-04-22 14:22:45 +02:00
5233434d94
proper split cronjob functions 2019-04-22 14:22:00 +02:00
6056081d5a
Move mod/nodeinfo to src/Module/Nodeinfo 2019-04-22 14:00:17 +02:00
2711284827 Added missing "cron_interval" default value 2019-04-10 06:41:57 +00:00
90eea919a4 New contact field "updated", fix warnings 2019-04-09 05:15:23 +00:00
a25fd7713b Added Worker 2019-04-08 21:06:15 +00:00
46a99a05a1 Remove the queue from the core 2019-04-05 18:04:39 +00:00
e3caf0f4f5 Use deferred workers instead of the queue mechanism 2019-04-04 20:51:12 +00:00
09e03c9213
Merge branch 'develop' into task/6778-add-storage-move-to-cron 2019-03-27 14:13:42 -04:00
23654ce566
Added Update checks
- Logging
- Console
- Admin overview
2019-03-24 22:51:30 +01:00
410f34d7fd Add storage backend move cronjob
- Fix typos in Console\Storage and Worker\CronJobs
2019-03-23 21:47:33 -04:00
66df8d6bc6 Fix wrong variable name in Worker\Notifier 2019-03-23 00:05:47 -04:00
8237e73e26 Adding REAMDEs to directories 2019-03-22 22:56:57 -04:00
f225a6c51a Reformat code
- Reformat Console\Storage
- Reformat Core\StorageManager
- Simplify logic in Worker\CronJobs
2019-03-19 22:42:05 -04:00
4ff837488f Issue 6167: Don't publish non visible content 2019-03-15 20:31:07 +00:00
80c2c5479a Issue 6167: Don't distribute uploaded pictures 2019-03-15 06:05:52 +00:00
cd0d6cb626 Forums now are working with AP as well 2019-03-14 18:44:41 +00:00
5df246e9af
Merge pull request #6825 from annando/empty-spawn
Worker: Don't spawn without jobs
2019-03-08 07:26:22 +01:00
d87abe9563 Worker: Don't spawn without jobs 2019-03-08 05:53:36 +00:00
77a591e6e3 Fix namespace ambiguity about Model\Queue in Worker\Delivery 2019-03-06 23:17:58 -05:00
9fa812b35d
Rewrites:
- converted single-line if() block to multi-line and with curly braces
- "imported" SPL classes to have unified code style
- always initialize your variables ... :-/
- added some empty lines/spaces for better readability

Signed-off-by: Roland Häder <roland@mxchange.org>
2019-02-19 01:56:41 +01:00
6fd8b5f365 Don't send single item delete commands to protocols that support account removal 2019-02-11 20:30:08 +00:00
b2c2971551
Merge pull request #6619 from annando/worker-again
Furtner improval of the worker speed
2019-02-09 19:50:35 -05:00
Michael Vogel
ff2164ee85
Merge pull request #6608 from MrPetovan/bug/6386-fix-poco-discover-server-users
Fix poco discover server users
2019-02-10 00:38:07 +01:00
171cfe8f44 Furtner improval of the worker speed 2019-02-09 23:10:15 +00:00
3c137e812a Fix delivery data increment in APDelivery
- Avoid incrementing the queue done if Transmitter::createCachedActivityFromItem fails
2019-02-08 23:20:15 -05:00
3aa77685fc
Merge pull request #6611 from annando/worker-performance
Improved worker performance (changed keys, changed queries)
2019-02-08 17:46:04 -05:00
5e5a2c3cc1 Improved worker performance (changed keys, changed queries) 2019-02-08 21:48:41 +00:00
066ad8c01b Add PortableContact constants
- Fix typo in mod/admin
- Replace deprecated Logger::log calls
2019-02-08 08:38:13 -05:00
b4fc1d6810 Partly Reverted #6583 2019-02-06 07:31:29 +00:00
97fb2202cb Lower priority for removing item 2019-02-03 23:59:16 +00:00
1e0e1674f2
4) Adding Factories to other entrypoints 2019-02-03 22:46:50 +01:00
fc0acd7b1f AP: Debug option to deliver via AP first 2019-01-30 19:33:08 +00:00
030c0b5dc6 Another preparation for forum posts via AP 2019-01-28 06:23:06 +00:00
3392c7a8be Fixed "created" origin 2019-01-24 00:34:14 +00:00
0fdab4ed10 Fix for several fatal errors 2019-01-23 21:54:20 +00:00
c897969589 Fix wrong variable name in Worker\Delivery 2019-01-23 09:07:00 -05:00
5d4bafb116 Fix two additional uses of uid in Worker\Notifier 2019-01-22 08:31:39 -05:00
282bc01994 Fix using wrong uid for APDelivery in Worker\Notifier 2019-01-22 01:59:30 -05:00
e7be87df93 Fix missing $ in front of variable names 2019-01-21 11:12:49 -05:00
3d839bb176 Move Contact::ACCOUNT_TYPE_* constants to User::ACCOUNT_TYPE_*
- Keep Contact::TYPE_* constants for comparison with contact.contact-type
2019-01-21 10:56:27 -05:00
dbc6eb5422 Remove unused code in mod/
- Remove commented code
- Remove unused/immediately overwritten variables
- Remove extraneous parameters
- Remove unreachable code
2019-01-21 10:53:32 -05:00
4a95ca280d Remove unused code
- Remove commented code
- Remove unused/immediately overwritten variables
- Remove extraneous parameters
- Remove unreachable code
- Remove duplicate array keys
2019-01-21 10:48:40 -05:00
d1c6ec9718 Update namespaces declaration in include/
- Remove unused use statements
- Add required use statements
2019-01-21 10:44:45 -05:00
cb3f09ae4f Refactor namespaces
- Remove unused use statements
- Add required use statements
- Escape global classes
2019-01-21 10:43:42 -05:00
3282ce5389 Fix PHPDoc comments project-wide 2019-01-21 10:35:51 -05:00
55e54bb950 Replace deprecated Addon::callHooks with Hook::callAll
- Update documentation
2019-01-21 09:50:56 -05:00
895b3abf32 Remove/replace killme() with *exit() 2019-01-21 09:49:17 -05:00
ff1f6564f9 Remove delivery queue done incrementation for mail delivery 2019-01-21 09:39:14 -05:00
1696ad962e Add delivery queue number manipulation
- Add new ItemDeliveryData model class
- Add queue_count initialization in Notifier
- Add queue_done incrementation in various Delivery tasks
2019-01-21 09:36:51 -05:00
8a0e4e12e1 Replace item_id by target_id in multimode delivery workers 2019-01-21 09:32:41 -05:00
1e6193a14e Refactor Worker/Notifier part 4
- Remove redundant $normal_mode flag
- Moved public message email recipient loop
- Simplify OStatus delivery
2019-01-21 09:31:57 -05:00