Hypolite Petovan
af6dbc654f
Rename Friendica\Database\dba to Friendica\Database\DBA
2018-07-20 08:19:26 -04:00
Michael
5c63de1692
Just some more fixed notice
2018-07-20 05:31:26 +00:00
Hypolite Petovan
daa1177e3a
Update use statement lists with new Friendica\Database\dba class
...
- Remove unused use statement
- Remove superfluous use statements (classes in the same namespace)
- Add missing use statements
2018-07-19 22:15:21 -04:00
Michael Vogel
5af9596dde
New item field "Post-type" and new table "permissionset" ( #5408 )
...
* "post-type" replaces "bookmark" and "type"
* Removed some more type
* Added index to permission set
* The permission set is now stored
* The permission set is now removed upon expiry
* Post update now stores the permission set
* New file
* Permissions are now sorted
* Changed documentation
2018-07-19 09:52:05 -04:00
Hypolite Petovan
0cbe3aa8e6
Remove global $db variable
2018-07-16 19:38:17 -04:00
Hypolite Petovan
820afa2284
Replace global $a with BaseObject::getApp()
2018-07-16 19:38:17 -04:00
Michael Vogel
d3a2ed85fe
Next item structure works ( #5380 )
...
* Use "LEFT JOIN" to always fetch the item. Needed for update routines.
* New conversion routine that now covers every item
* Post update is now activated
* We now use a hash based upon RIPEMD-320 for content and activity
* The hash doesn't contain the plink anymore
* Legacy item fields are now "null"able
* New hash function for a server unique item hash
* Introduction of the legacy mode (usage of old item fields)
* Code simplification
* We don't need the "uri" fields anymore in item-activity and item-content
* Use the "created" and not the "received" date for the hash
* Avoiding several notices
* Some more warnings removed
* Improved uri-hash / Likes on Diaspora are now getting a creation date
* Corrected the post update version
* Ensure an unique uri-hash
* Don't delete orhaned item data at the moment
* Partly reworked, due to strange behaviour
* Some more parts reworked
* Using the uri currently seems to be more reliable
* Using the uri here as well
* Use the hash values again
* Grouped item fields in different categories
* Notices again
* use the gravity (we always should)
* Added hint for disabled post updates
* Notices ...
* Issue #5337 : Personal notes are displayed again
* Use the gravity again
2018-07-15 14:36:20 -04:00
Michael Vogel
0360f7197a
Several more warnings ... ( #5340 )
...
* Some more warnings removed
* Even more warnings ...
* Will it ever end? ;-)
* Avoid warning in dbstructure
* Origin and OStatus ...
* There are more warnings solved ... yeah!
* And again ...
* We are not done yet
* And more ...
* And some new places ...
* And more in the feeds
* Avoid some more
* And some backend stuff
* Notifications cleared
* Some more stuff
* and again ...
* It's getting fewer ...
* Some warnings had been hidden in the notifications
* Fix the fix
* And another missing one ...
* We need the owner here, not the user
* Forgotten user
* And more ...
* And some more warnings disappeared ...
* Some more frontend warnings
* Some backend warnings removed
* Fixed sidebar for "vier"
* And more ...
* Some more ...
* And something for "remote self"
* Am I stuck in an endless loop?
* Fix: Clear tag and file field on update
* Preset page content
2018-07-10 08:27:56 -04:00
Michael
3e797547a3
Warnings fixed
2018-07-08 09:37:05 +00:00
Michael
4d35e228c4
More item abstraction / making remote deletion work again
2018-07-07 18:14:16 +00:00
Michael
b421e7708f
Removing of orphaned activity and content data
2018-07-07 07:43:13 +00:00
Michael
7f78540454
Expire does work now for activities as well
2018-07-06 06:45:30 +00:00
Michael
014eea8e12
Improve expire for item-content and item-activity
2018-07-05 22:07:50 +00:00
Michael
4807797eaf
New worker to fix empty icid
2018-06-29 06:24:18 +00:00
Michael
b3abe148a6
Remove comment
2018-06-27 20:11:09 +00:00
Michael
3918a31fc2
Remove unneeded logging
2018-06-27 20:08:02 +00:00
Michael
8c2f91573a
Fix mail import
2018-06-27 18:09:13 +00:00
Michael
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
Michael
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
Michael
70af2cecf2
Some of the last direct SQL calls to the item table had been changed
2018-06-21 06:21:51 +00:00
Michael
23aa9dffa0
New item functions are now used in the delivery process as well
2018-06-17 21:35:33 +00:00
Michael
d7c477d0f4
Don't probe anymore, but ensure that we got good contact data
2018-06-03 08:36:05 +00:00
Michael
04fd6eff01
Possibly fixes 5137: Only execute "optimize table" when allowed
2018-05-27 06:23:18 +00:00
Michael
89a20ddbd7
Nodeinfo: The number of comments is now calculated more reliable
2018-05-22 20:10:18 +00:00
Michael
e9848d7b8f
End subscription for unreachable subscribers
2018-05-19 03:56:29 +00:00
Michael
f4a71b76dd
Dynamic priority handling
2018-05-17 23:43:44 +00:00
Michael
61824119e4
Moved functionality in new model class
2018-05-17 23:30:49 +00:00
Michael
5a1e1c1ec9
Fix to OStatus delivery to be not so blocking to other tasks
2018-05-17 22:17:03 +00:00
Michael
b333c7ae2e
Bugfix: Only send a notifier when the item was really edited
2018-05-17 05:49:55 +00:00
Michael
fc60e23314
Added comments / hourly workerqueue deletion
2018-05-15 17:50:29 +00:00
Michael
eb4650ff23
dbclean settings are now available from the frontend
2018-05-07 05:37:20 +00:00
Michael
321a36d4db
Avoid SQL error with wrong formatted datetime value
2018-05-03 20:48:35 +00:00
Michael
1e0200884f
Fixed private messaging/relaying is controlled by the parent
2018-05-01 06:37:12 +00:00
Michael
a182dd3400
Improved logging, avoiding PHP warning
2018-04-30 16:46:49 +00:00
Michael
4909075321
Merge branch 'direct-dfrn' of github.com:annando/friendica into direct-dfrn
2018-04-30 13:09:11 +00:00
Michael
5588f0d2ae
Improved logging
2018-04-30 13:08:48 +00:00
Michael
b2b597288c
Deliver with the new function when delivering to a "uid=0" contact
2018-04-30 13:07:40 +00:00
Michael
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
Michael
84909d9711
Standard stuff
2018-04-27 12:40:52 +00:00
Michael
9f5a6c05fb
Preparation for relay posts with DFRN
2018-04-27 05:11:52 +00:00
Michael
4904be0d6f
Better fallback on values > 299 as well
2018-04-27 04:55:46 +00:00
Michael
e3c9d31088
Added header
2018-04-27 03:08:13 +00:00
Michael
488c6c9b68
Constants moved
2018-04-27 02:52:12 +00:00
Michael
66e34b9357
Improvements
2018-04-26 22:30:43 +00:00
Michael
8c23fea1df
Added some explanation, beautified code
2018-04-26 21:16:16 +00:00
Michael
a0c5a84ce8
Better way to fetch items
2018-04-26 07:11:18 +00:00
Michael
b70b020490
Unneeded stuff removed, only fetch needed records
2018-04-26 06:23:01 +00:00
Michael
71d4c6e4a0
Cleaned up
2018-04-26 05:45:05 +00:00
Michael
c437dac3a0
Delivery to non followers
2018-04-25 21:55:24 +00:00
Michael
3abd0b54cc
Reworked delivery
2018-04-25 21:18:21 +00:00
Michael
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
Michael
edcf1466a7
Relay: Avoid sending relay posts to servers that already received content
2018-04-11 19:01:25 +00:00
Tobias Diekershoff
0cab448ba1
make it unreadable... almost
2018-04-11 14:12:53 +02:00
Tobias Diekershoff
ef8e984c62
noreply should not be translate-able in email addresses
2018-04-11 08:17:44 +02:00
Michael
869d8ab12d
We can now define the days after a contact is archived
2018-04-10 11:10:02 +00:00
Michael
08abf65f7b
Old database functions had been replaced in the workers
2018-04-09 21:34:23 +00:00
Michael
a75858f02c
Don't queue relay posts
2018-04-08 09:46:47 +00:00
Michael
3e6507441e
Queue: Better handling of return values of transmissions
2018-04-04 19:03:05 +00:00
Michael
e7fb8c04dd
Don't always queue messages
2018-04-03 12:27:22 +00:00
Michael
1a2c771f24
DFRN: Improvements to delivery. Logging and marking as not reachable
2018-04-03 12:18:05 +00:00
Michael
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
Michael
d98c6819e7
$contact isn't called by reference anymore
2018-03-14 20:53:03 +00:00
Michael
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
Michael
2f121aa828
When deleting, don't send the parent via DFRN
2018-03-01 20:44:44 +00:00
Michael
82bd26edb9
The item class had been improved (e.g. database calls)
2018-02-21 21:08:37 +00:00
Michael
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
Michael
2a762868e9
Some clean up for the worker, arrays are now supported as parameter
2018-02-11 16:18:39 +00:00
Michael
d70a20a466
We now incrementally calculate the queue delivery time
2018-02-08 18:39:48 +00:00
Michael
8ea572ebd1
Added a config value to ignore server checks
2018-02-08 13:09:09 +00:00
Michael
0093f863fd
Don't add already queued items from Diaspora to the queue again
2018-02-08 11:26:24 +00:00
Michael
4859a18ae4
Fixed wrong capitalation (or however this is written)
2018-02-06 23:17:18 +00:00
Michael
053cb31eea
Forgotten commented out text
2018-02-06 22:57:56 +00:00
Michael
47d165cb25
Hook calls can now be forked into a worker queue entry
2018-02-06 22:52:36 +00:00
Michael
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
Michael
9cbc4a7355
Basic forum support for Diaspora
2018-01-30 06:22:09 +00:00
Michael
6871481a78
Moved "limitBodySize"
2018-01-28 17:36:37 +00:00
Michael
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
Michael
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
Michael
034d46196f
"last-child" is not used anymore
2018-01-18 06:54:44 +00:00
Michael
2d66242b4f
The delete function is now changed to the new function
2018-01-17 23:22:01 +00:00
Michael
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
Michael
b638ed9e86
Corrected function name
2018-01-12 23:43:08 +00:00
Michael
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
Michael
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
Michael
0bcbe6034e
Like on uid=0 does work now
2017-12-27 22:21:40 +00:00
Michael
9acc2ffc24
Make it easier
2017-12-27 21:51:16 +00:00
Michael
fa8a09d977
Comments to public posts no get through
2017-12-19 23:12:37 +00:00
Michael
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
Michael
7099a54b3d
Cut and paste is always fun
2017-12-06 16:50:52 +00:00
Michael
4bf425de5d
Merge remote-tracking branch 'upstream/develop' into dbclean
2017-12-06 16:49:55 +00:00
Michael
f1f222c633
Removed unused code
2017-12-06 14:30:07 +00:00
Michael
ad5c263dbf
Reduced "dbclean" calls
2017-12-06 14:23:38 +00:00