Commit graph

294 commits

Author SHA1 Message Date
014eea8e12 Improve expire for item-content and item-activity 2018-07-05 22:07:50 +00:00
4807797eaf New worker to fix empty icid 2018-06-29 06:24:18 +00:00
b3abe148a6 Remove comment 2018-06-27 20:11:09 +00:00
3918a31fc2 Remove unneeded logging 2018-06-27 20:08:02 +00:00
8c2f91573a Fix mail import 2018-06-27 18:09:13 +00:00
6b568bb8fa Delete of item-content should work now 2018-06-25 20:23:32 +00:00
Hypolite Petovan
8a3cae686b
Merge pull request #5261 from annando/and-again-abstraction
And again the item abstraction - and a fix for issue 5252
2018-06-21 11:50:31 -04:00
miqrogroove
80e96bcf38
Workaround for Bugs in Class dba 2018-06-21 11:20:44 -04:00
d643e00d33 Standards and a new function to fetch content 2018-06-21 15:14:01 +00:00
miqrogroove
7f4bce67a8
Update DBClean.php 2018-06-21 08:27:36 -04:00
miqrogroove
f2463e327a
Update DBClean.php 2018-06-21 07:52:56 -04:00
miqrogroove
cfe035f300
Update DBClean.php 2018-06-21 07:51:30 -04:00
miqrogroove
62e61a75f7
Make Conversation Cleanup Configurable 2018-06-21 07:43:40 -04:00
70af2cecf2 Some of the last direct SQL calls to the item table had been changed 2018-06-21 06:21:51 +00:00
23aa9dffa0 New item functions are now used in the delivery process as well 2018-06-17 21:35:33 +00:00
d7c477d0f4 Don't probe anymore, but ensure that we got good contact data 2018-06-03 08:36:05 +00:00
04fd6eff01 Possibly fixes 5137: Only execute "optimize table" when allowed 2018-05-27 06:23:18 +00:00
89a20ddbd7 Nodeinfo: The number of comments is now calculated more reliable 2018-05-22 20:10:18 +00:00
e9848d7b8f End subscription for unreachable subscribers 2018-05-19 03:56:29 +00:00
f4a71b76dd Dynamic priority handling 2018-05-17 23:43:44 +00:00
61824119e4 Moved functionality in new model class 2018-05-17 23:30:49 +00:00
5a1e1c1ec9 Fix to OStatus delivery to be not so blocking to other tasks 2018-05-17 22:17:03 +00:00
b333c7ae2e Bugfix: Only send a notifier when the item was really edited 2018-05-17 05:49:55 +00:00
fc60e23314 Added comments / hourly workerqueue deletion 2018-05-15 17:50:29 +00:00
eb4650ff23 dbclean settings are now available from the frontend 2018-05-07 05:37:20 +00:00
321a36d4db Avoid SQL error with wrong formatted datetime value 2018-05-03 20:48:35 +00:00
1e0200884f Fixed private messaging/relaying is controlled by the parent 2018-05-01 06:37:12 +00:00
a182dd3400 Improved logging, avoiding PHP warning 2018-04-30 16:46:49 +00:00
4909075321 Merge branch 'direct-dfrn' of github.com:annando/friendica into direct-dfrn 2018-04-30 13:09:11 +00:00
5588f0d2ae Improved logging 2018-04-30 13:08:48 +00:00
b2b597288c Deliver with the new function when delivering to a "uid=0" contact 2018-04-30 13:07:40 +00:00
bbbebb2b9c Don't spool relay deliveries 2018-04-30 05:56:40 +00:00
Hypolite Petovan
bd21fc3751 Import posts from ignored contacts 2018-04-27 21:08:19 -04:00
84909d9711 Standard stuff 2018-04-27 12:40:52 +00:00
9f5a6c05fb Preparation for relay posts with DFRN 2018-04-27 05:11:52 +00:00
4904be0d6f Better fallback on values > 299 as well 2018-04-27 04:55:46 +00:00
e3c9d31088 Added header 2018-04-27 03:08:13 +00:00
488c6c9b68 Constants moved 2018-04-27 02:52:12 +00:00
66e34b9357 Improvements 2018-04-26 22:30:43 +00:00
8c23fea1df Added some explanation, beautified code 2018-04-26 21:16:16 +00:00
a0c5a84ce8 Better way to fetch items 2018-04-26 07:11:18 +00:00
b70b020490 Unneeded stuff removed, only fetch needed records 2018-04-26 06:23:01 +00:00
71d4c6e4a0 Cleaned up 2018-04-26 05:45:05 +00:00
c437dac3a0 Delivery to non followers 2018-04-25 21:55:24 +00:00
3abd0b54cc Reworked delivery 2018-04-25 21:18:21 +00:00
866fbb4d80 Added console command to manually archive contacts 2018-04-23 05:33:47 +00:00
Hypolite Petovan
9d928417a1
Merge pull request #4817 from annando/relais-duplicates
Avoid sending relay posts to servers that already received content
2018-04-11 19:00:34 -04:00
edcf1466a7 Relay: Avoid sending relay posts to servers that already received content 2018-04-11 19:01:25 +00:00
0cab448ba1 make it unreadable... almost 2018-04-11 14:12:53 +02:00
ef8e984c62 noreply should not be translate-able in email addresses 2018-04-11 08:17:44 +02:00
869d8ab12d We can now define the days after a contact is archived 2018-04-10 11:10:02 +00:00
08abf65f7b Old database functions had been replaced in the workers 2018-04-09 21:34:23 +00:00
a75858f02c Don't queue relay posts 2018-04-08 09:46:47 +00:00
3e6507441e Queue: Better handling of return values of transmissions 2018-04-04 19:03:05 +00:00
e7fb8c04dd Don't always queue messages 2018-04-03 12:27:22 +00:00
1a2c771f24 DFRN: Improvements to delivery. Logging and marking as not reachable 2018-04-03 12:18:05 +00:00
bfd057f148 Direct transfer without a relay is now possible 2018-03-28 04:24:38 +00:00
Hypolite Petovan
27d94023ee Merge branch 'master' into develop 2018-03-23 06:15:55 -04:00
d98c6819e7 $contact isn't called by reference anymore 2018-03-14 20:53:03 +00:00
7db0b850cb Avoid an error in OnePoll when the contact was "null". 2018-03-14 19:47:14 +00:00
Hypolite Petovan
789561c7a2 Remove/Update references to include/html2*.php 2018-03-07 16:34:17 -05:00
2f121aa828 When deleting, don't send the parent via DFRN 2018-03-01 20:44:44 +00:00
82bd26edb9 The item class had been improved (e.g. database calls) 2018-02-21 21:08:37 +00:00
0062fede79 Issue 1312: Improve account expiry 2018-02-18 22:19:20 +00:00
Hypolite Petovan
9e3bae5caa Remove references to include/bbcode.php 2018-02-14 22:01:14 -05:00
Hypolite Petovan
d419d07f73 [Scrutinizer] Fix undeclared variables in src/ (except Protocol/)
- Use dba::selectFirst to remove intermediate variables `$r`
- Remove unused variable `$url_recipients` in Worker\Dellivery
2018-02-14 00:05:00 -05:00
2a762868e9 Some clean up for the worker, arrays are now supported as parameter 2018-02-11 16:18:39 +00:00
d70a20a466 We now incrementally calculate the queue delivery time 2018-02-08 18:39:48 +00:00
8ea572ebd1 Added a config value to ignore server checks 2018-02-08 13:09:09 +00:00
0093f863fd Don't add already queued items from Diaspora to the queue again 2018-02-08 11:26:24 +00:00
4859a18ae4 Fixed wrong capitalation (or however this is written) 2018-02-06 23:17:18 +00:00
053cb31eea Forgotten commented out text 2018-02-06 22:57:56 +00:00
47d165cb25 Hook calls can now be forked into a worker queue entry 2018-02-06 22:52:36 +00:00
e609de2957 Many item calls are now isolated in a single function 2018-02-06 12:40:22 +00:00
Michael Vogel
fa95911fdb
Merge pull request #4393 from MrPetovan/task/3878-move-include-tags-to-src
Move include/tags to src/
2018-02-05 18:11:29 +01:00
Hypolite Petovan
2a486903d1 Remove references to include/tags.php 2018-02-03 23:59:31 -05:00
Hypolite Petovan
507bea0e9f Copy functions from include/tags to src
- Create Content\Widget\TagCloud
- Populate Worker\TagUpdate::execute
- Add Content\Widget::tagCloud
- Add Model\Term::insertFromItemId and Model\Term::insertFromItemUri
2018-02-03 23:51:40 -05:00
Hypolite Petovan
f020292408 Remove references to include/datetime 2018-02-03 20:47:37 -05:00
Hypolite Petovan
cea80c78e4 Replace remaining functions in include/datetime by Temporal methods
- Fix uses statements
2018-02-03 20:47:37 -05:00
Hypolite Petovan
5e7285b9ba Move Temporal::convert() to DateTimeFormat::convert() 2018-02-03 08:56:55 -05:00
Hypolite Petovan
35d06bd9eb Add Temporal::utc() shorthand to Temporal::convert() 2018-02-03 08:56:53 -05:00
Hypolite Petovan
8aff8a76eb Add Temporal::utcNow() 2018-02-03 08:56:52 -05:00
Hypolite Petovan
b854905150 Move ATOM_TIME to Temporal::ATOM 2018-02-03 08:56:52 -05:00
Hypolite Petovan
dc366bf1f7 Refactor datetime_convert into Temporal::convert
- Changed parameter order to save space
- Refactor select_timezone into Temporal::getTimezoneSelect
- Refactor field_timezone into Temporal::getTimezoneField
2018-02-03 08:56:51 -05:00
Hypolite Petovan
997b058743 Add missing use for Model\Item in Worker\Delivery 2018-01-30 21:14:44 -05:00
9cbc4a7355 Basic forum support for Diaspora 2018-01-30 06:22:09 +00:00
6871481a78 Moved "limitBodySize" 2018-01-28 17:36:37 +00:00
7b27dda784 Most functions now moved from include/items.php 2018-01-28 11:18:08 +00:00
Adam Magness
f04d40a37e Review update
Rename function, move others
2018-01-27 11:13:41 -05:00
Adam Magness
ca76e49c23 Move remaining functions
update remaining function calls
2018-01-27 08:25:54 -05:00
Adam Magness
a32ba32ff4 Move post_url
move post_url function
2018-01-26 23:24:23 -05:00
Adam Magness
2f9642392d Move z_fetch_url
move z_fetch_url method
2018-01-26 23:18:38 -05:00
Adam Magness
c67452f72e Move fetch_url
move fetch_url function
2018-01-26 23:09:48 -05:00
Adam Magness
1c7fd310d2 Create PostUpdate class
create new class and update call from worker
2018-01-25 11:29:43 -05:00
3ace5d0d1d Some functions had been moved away from include/items.php 2018-01-24 20:27:32 +00:00
Adam Magness
07d306aa37 Finish t() for src
Update t() calls in src folder
2018-01-22 18:03:26 -05:00
Adam Magness
11cf36105c Update Addon functions and calls
Update function names and calls for Addon class.
2018-01-20 07:48:22 -05:00
034d46196f "last-child" is not used anymore 2018-01-18 06:54:44 +00:00
2d66242b4f The delete function is now changed to the new function 2018-01-17 23:22:01 +00:00
c4d3ab6878 Transfer all item shadow functions to the item class 2018-01-16 22:23:19 +00:00
Adam Magness
5d8f798ef7 Fix class name issue
use Model\Queue as QueueModel and update function calls.
2018-01-16 08:49:08 -05:00
Adam Magness
920a9b9b12 Remove requires
remove require_once statements
2018-01-15 20:16:14 -05:00
Adam Magness
33ac7a529f Update functions and calls
update function names and calls
2018-01-15 20:12:07 -05:00
Hypolite Petovan
e36f2bb1fb Use short form array syntax everywhere
- Add short form array syntax to po2php.php generation
2018-01-15 14:07:17 -05:00
b638ed9e86 Corrected function name 2018-01-12 23:43:08 +00:00
3c027699a5 Receive participation messages and processes them 2018-01-12 20:52:43 +00:00
Hypolite Petovan
5fc4927764 Improve dba::selectFirst calls
- Fix remaining $r[0] references
- Rename $r to meaningful names
2018-01-11 03:43:57 -05:00
Hypolite Petovan
ae66bcaff3 Rename selectOne to selectFirst 2018-01-10 12:57:21 -05:00
Hypolite Petovan
da60893590 Replace dba::select(limit => 1) by dba::selectOne
- Convert array declarations to new style
2018-01-10 12:57:21 -05:00
Adam Magness
c81e83c500 Review changes
Update update and new functions to updateFromProbe and create. Update calls to renamed functions.
2018-01-09 11:23:26 -05:00
Adam Magness
a59ab5552e Includes and calls
Remove includes and update function calls
2018-01-09 09:59:52 -05:00
0c9a9b6f0c Commenting to (nearly) every Friendica contact is now possible 2018-01-04 19:48:56 +00:00
Adam Magness
71534a1475 Review update
Rename function and add new function.
2018-01-03 22:36:15 -05:00
Adam Magness
e37640c44c Move Photos to xrc
Move photos from include to Model\Photo class
2018-01-03 21:01:41 -05:00
Hypolite Petovan
c2e29f2685 Add type parameter to OStatus::feed
- Removed unused parameter $a
- Added $nocache parameter
- Updated usages
2017-12-30 00:19:16 -05:00
0bcbe6034e Like on uid=0 does work now 2017-12-27 22:21:40 +00:00
9acc2ffc24 Make it easier 2017-12-27 21:51:16 +00:00
fa8a09d977 Comments to public posts no get through 2017-12-19 23:12:37 +00:00
52a799574d OnePoll: We now force an update check all the time 2017-12-18 12:51:29 +00:00
Hypolite Petovan
872190dcb0 Fix missing variable in Worker\Directory
- Remove fixed comment in PortableContact
2017-12-17 16:25:32 -05:00
Hypolite Petovan
df02238659 Centralize owner data fetch 2017-12-17 16:22:39 -05:00
Hypolite Petovan
5926cd534a Add FIXME for unrecoverable missing variables 2017-12-17 15:35:38 -05:00
Hypolite Petovan
2978b1eef0 Fix undefined variable/wrong parameter count/unknown functions 2017-12-17 15:33:45 -05:00
Hypolite Petovan
916236ce2f Fix docblocks types 2017-12-17 15:27:50 -05:00
Hypolite Petovan
10b72b0e9e PHPStan: Fix missing requires/namespaces 2017-12-17 15:26:43 -05:00
Hypolite Petovan
4fe8dab08d Remove include/group.php 2017-12-09 13:45:54 -05:00
Hypolite Petovan
abdecd2b2f Use new Model methods for groups 2017-12-09 13:45:17 -05:00
Hypolite Petovan
bc58e8d3be Rename Model\GlobalContact to Model\GContact 2017-12-07 23:57:56 -05:00
Hypolite Petovan
a42595a30c Move Object\Contact to Model\Contact 2017-12-07 23:56:12 -05:00
Michael Vogel
5747cfc79c
Revert "Move Objects to Model" 2017-12-08 05:21:51 +01:00
Hypolite Petovan
cd84bf8963 Rename Model\GlobalContact to Model\GContact 2017-12-07 09:09:28 -05:00
Hypolite Petovan
18d93cddf6 Move Object\Contact to Model\Contact 2017-12-07 09:04:24 -05:00
Adam Magness
71911a6989 Use default value
use the default value parameter correctly!
2017-12-06 15:25:36 -05:00
Adam Magness
cadfef63c4 Update false evaluations
=== false and !== false to is_null where appropriate.
2017-12-06 14:57:06 -05:00
7099a54b3d Cut and paste is always fun 2017-12-06 16:50:52 +00:00
4bf425de5d Merge remote-tracking branch 'upstream/develop' into dbclean 2017-12-06 16:49:55 +00:00
f1f222c633 Removed unused code 2017-12-06 14:30:07 +00:00
ad5c263dbf Reduced "dbclean" calls 2017-12-06 14:23:38 +00:00
418365b30e DBClean now runs as long as there are entries to be deleted 2017-12-06 14:22:03 +00:00
9ffde01fc1 DBClean now works with the conversation table as well 2017-12-05 21:30:38 +00:00
115d71e841 One tab too much 2017-12-05 09:34:43 +00:00
5f9e87ea5a Some cleanup for archiving/unarchiving contacts 2017-12-05 07:08:20 +00:00
Michael Vogel
2685c9bb1c
Merge pull request #4003 from MrPetovan/task/3942-move-user-to-src
Migrate password hashing Part 2: Move include/user to src
2017-12-04 10:32:45 +01:00
ad8c290c2b Improved vitality check for followers, feeds and OStatus contacts 2017-12-04 06:54:08 +00:00
Hypolite Petovan
27212c7f39 Update function calls to use Model\User and Object\Contact 2017-12-03 22:29:06 -05:00
Hypolite Petovan
4395c20679 Fix formatting and add documentation
- mod/register
- mod/regmod
- Model/User
- Worker/CronJobs
2017-12-03 22:15:31 -05:00
f988ed5d15 Merge remote-tracking branch 'upstream/develop' into onepoll 2017-12-03 13:45:48 +00:00
6f7510550d NETWORK_MAIL2 was never finished, so remove it as well 2017-12-03 09:19:58 +00:00
cd55c742e8 Check Diaspora contacts, don't poll unreachable contacts too often 2017-12-03 08:59:24 +00:00
adf802474b Zot was never really supported, so it is now removed completely 2017-12-02 21:57:39 +00:00