Michael Vogel
ec49d004e3
We now store the item delivery data in a separate table ( #5413 )
...
* We now store the item delivery data in a separate table
* Reorganized table structure
2018-07-19 17:56:52 -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
Roland Häder
346790cbbc
According to @annando and @MrPetovan , $emailcc is no item
field (column) and ( #5401 )
...
should be initialized empty (I did it above the `if()` block).
Signed-off-by: Roland Häder <roland@mxchange.org>
2018-07-18 17:26:14 -04:00
Roland Häder
a41e49c84a
Fixes for E_NOTICE in mod/item.php ( #5393 )
...
* Fixes applied:
- `if (is_array($some_array))` is better code style than `if ($some_array)` as
the `if()` block really needs an array to be found
- same with `if ($some_id)`, maybe `if ($some_id > 0)` is a more proper check
- added missing field 'emailcc' to Item::ITEM_FIELDLIST
Signed-off-by: Roland Häder <roland@mxchange.org>
* Fixes E_NOTICE of missing variable (PHP's lazyness again).
Signed-off-by: Roland Häder <roland@mxchange.org>
* Use !empty() to avoid accessing empty array.
Signed-off-by: Roland Häder <roland@mxchange.org>
2018-07-17 18:18:42 -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
c829e43725
moved get_guid to System::createGUID
2018-07-09 21:38:16 +02:00
7d6933c898
Avoid "Trying to get property of non-object"
2018-07-08 11:46:05 +00:00
3e797547a3
Warnings fixed
2018-07-08 09:37:05 +00:00
c25c3b5981
urgent bugfix: Wrong function name for locks
2018-07-08 08:32:50 +00:00
c2d4b557ae
Only build tag and file when really needed
2018-07-08 05:44:35 +00:00
74d5eec571
Merge branch 'item-activities' of github.com:annando/friendica into item-activities
2018-07-08 04:56:35 +00:00
5ee2db8a16
Avoid undefined index
2018-07-08 04:55:45 +00:00
Michael Vogel
ff5ee74ecf
Merge branch 'develop' into item-activities
2018-07-08 06:35:50 +02:00
75aa831b32
Better not check too strict
2018-07-07 23:31:30 +00:00
4673560c55
Don't use isset
2018-07-07 23:19:28 +00:00
4467dd4972
Clear legacy item fields
2018-07-07 23:03:28 +00:00
afa194200b
Fix: Ensure that the value is set.
2018-07-07 19:39:00 +00:00
d6af9515ba
Avoid storing an icid value when iaid is stored/Fix item retraction
2018-07-07 16:38:01 +00:00
575662c2d7
Just some code cleanup
2018-07-07 11:39:37 +00:00
3389e9b213
Removing of likes should work now on comments as well
2018-07-07 10:43:43 +00:00
9e262e6157
Better handling of empty content
2018-07-06 22:08:41 +00:00
Michael Vogel
3eec97aa6e
Merge pull request #5314 from MrPetovan/task/4889-fix-tests
...
Fix tests after enabling PHP Notices
2018-07-06 22:14:01 +02:00
5a07042560
Added warning
2018-07-06 06:37:33 +00:00
f33bd5fc8e
Update does work now
2018-07-06 05:16:40 +00:00
5203f41d42
Set iaid after update
2018-07-05 22:50:33 +00:00
014eea8e12
Improve expire for item-content and item-activity
2018-07-05 22:07:50 +00:00
44e405d22b
We now store activities in a separate table
2018-07-05 22:00:38 +00:00
e41e7d2edd
Fixings
...
- fixed test for semaphore
- fixed some issues
- changed namespace in Tests back to "src/"
- changed namings
2018-07-05 20:57:31 +02:00
f60da34357
Fix unliking liked
2018-07-04 19:07:53 +00:00
4b3ae6a862
Only use query conditions in user mode
2018-07-02 18:22:27 +00:00
Hypolite Petovan
633a71ec97
Fix notice in Item::deleteById
2018-07-02 07:49:35 -04:00
Hypolite Petovan
a380bcd1c1
Fix more undefined variable/index notice in tests
2018-07-02 07:45:25 -04:00
717ca0b7eb
Use already fetched data for magiclink
2018-07-02 05:41:55 +00:00
38160a48b0
Post update script to move old content from the item table
2018-07-01 19:02:29 +00:00
32a639891f
Improved logging for expired items
2018-07-01 09:08:58 +00:00
bffdf96d87
The "file" variable isn't stored anymore in the item table
2018-07-01 07:57:59 +00:00
60dcdd0b27
Preparation for not storing the file field into the item table.
2018-06-30 21:15:24 +00:00
5ba1427806
We don't store tags in the item table anymore
2018-06-30 15:21:32 +00:00
0ab9f2e265
Preparations to not store the tags in the item table anymore
2018-06-30 13:54:01 +00:00
a8a189eec4
The detected language now moved to "item-content" as well
2018-06-30 05:18:43 +00:00
59f8cb16e5
Add item content before the transaction
2018-06-29 11:10:36 +00:00
a82cf2ae29
Delete item content for older item records
2018-06-29 06:51:48 +00:00
6b31e72905
Fix for: empty posts and comments that hadn't been transmitted to Diaspora
2018-06-29 06:20:04 +00:00
51a58ec2e2
Fix for fetching false fer... (sorry) verbs
2018-06-27 20:25:24 +00:00
028c9f4da5
We now store the verb in the item-content as well
2018-06-27 19:37:13 +00:00
76dab3b2d7
Use gravity instead of verb
2018-06-27 18:09:33 +00:00
f74a54b9bf
Standard stuff
2018-06-26 03:58:12 +00:00
7aa880543f
Fix shadow posts
2018-06-25 20:38:32 +00:00
89f0eec261
Use a constant fieldlist
2018-06-25 18:49:36 +00:00
c07b81c5b9
Added workarounds to fetch the complete item content
2018-06-25 16:11:27 +00:00
5f3f349006
"author-link" and "owner-link" aren't stored anymore in the item table
2018-06-25 06:45:05 +00:00
6dbbeaf8f6
Remove unneeded code
2018-06-25 06:33:12 +00:00
89fb28ae9b
Content is now stored exclusively in item-content, connected via "icid" field
2018-06-25 04:56:32 +00:00
941bab1096
We now only store the content in item-content
2018-06-24 23:09:13 +00:00
58d61810ea
We now store item content centrally
2018-06-24 21:41:49 +00:00
b03db4643f
The fetch function now centrally controls the content
2018-06-24 10:48:29 +00:00
d643e00d33
Standards and a new function to fetch content
2018-06-21 15:14:01 +00:00
c540154f8e
"shadow" does not exist
2018-06-19 21:41:38 +00:00
139d35438d
Fix: network had been empty
2018-06-19 21:32:42 +00:00
ebd76285d8
New item functions, improved feed cache behaviour
2018-06-19 05:39:56 +00:00
4714cb746b
Use the item functions at many more places
2018-06-18 20:36:34 +00:00
23aa9dffa0
New item functions are now used in the delivery process as well
2018-06-17 21:35:33 +00:00
e42b934807
Item field list structure is unified
2018-06-17 17:14:52 +00:00
6e10de9284
New function to fetch item data especially for users
2018-06-17 17:05:17 +00:00
0280a46ab4
Use predefined field lists
2018-06-17 06:27:52 +00:00
1aec8f620d
More item abstractions for DFRN and Diaspora
2018-06-16 22:32:57 +00:00
14cb128264
New function for generating item URI
2018-06-16 06:44:19 +00:00
bb79b8f4ac
More item calls have been replaced with the new functions
2018-06-15 22:30:49 +00:00
02fef0bcf5
Reworked notifications ("alt pager" added) / use of Item class to fetch data
2018-06-15 05:50:28 +00:00
446a45003d
Added documentation, some indention fixes
2018-06-09 19:12:13 +00:00
baf316e898
The central item fetch does work now and the API now uses these functions
2018-06-09 16:56:37 +00:00
4874e589f1
New class function to fetch items
2018-06-07 06:03:12 +00:00
b654af28fa
We need "global"
2018-06-03 09:40:32 +00:00
3f07d01dd1
Get rid of unneeded or redundant fields
2018-06-03 07:42:56 +00:00
Hypolite Petovan
93daf7883e
Merge branch 'master' into develop
...
- Updated new develop version label
- Incremented database build number
2018-06-01 07:30:04 -04:00
8329705eba
New function to delete items for users
2018-05-29 05:22:57 +00:00
708ddf2b02
Preparation for new deletion functionality
2018-05-26 20:23:49 +00:00
a6396dde55
Removed useless line
2018-05-26 20:08:42 +00:00
a50805c371
Grammar fix
2018-05-26 20:07:30 +00:00
bdbc51229a
Fix for not being able to delete items
2018-05-26 18:07:27 +00:00
3fe07cca57
Issue 2880: Editing post doesn't destroy mentions or hashtags anymore
2018-05-19 14:55:27 +00:00
b333c7ae2e
Bugfix: Only send a notifier when the item was really edited
2018-05-17 05:49:55 +00:00
84248ac4c1
Grammar stuff
2018-05-16 03:54:08 +00:00
fe8a4d50c8
Merge branch 'item-delete' of github.com:annando/friendica into item-delete
2018-05-15 19:31:05 +00:00
4a1bbd114c
Lower priority for "remote self"
2018-05-15 19:29:14 +00:00
82937189ba
Only delete undeleted items
2018-05-15 19:25:35 +00:00
fc60e23314
Added comments / hourly workerqueue deletion
2018-05-15 17:50:29 +00:00
3e475f3b82
Delete the shadow post when it is the last one
2018-05-15 16:40:13 +00:00
4a7bf95926
Fix: Delete all item copies if it is an original item
2018-05-15 15:51:58 +00:00
8564eeec4e
Fix: public comments weren't distributed to the followers.
2018-05-15 04:33:28 +00:00
57e668d9e0
Continued:
...
- avoided else() block which reduces code complexibility
- used more x()
- added curly braces
- added known type-hints
Signed-off-by: Roland Häder <roland@mxchange.org>
2018-05-14 22:50:05 +02:00
f9c695e78d
Fix SQL error during postupdate
2018-05-11 09:20:59 +00:00
3eb0b795fc
Bugfix: Avoid empty avatar photos when a public contact is created
2018-05-09 06:53:57 +00:00
08bf19082c
Ensure that there will always be an author-id and owner-id in the items
2018-05-08 20:20:15 +00:00
6c35f8ebf3
Update script for setting author-id and owner-id in item and thread table
2018-05-08 17:50:06 +00:00
1230ff146a
"remote-self" is now working for Diaspora and Twitter as well
2018-05-04 21:12:13 +00:00
Hypolite Petovan
bd21fc3751
Import posts from ignored contacts
2018-04-27 21:08:19 -04:00
1e2bc1e6cf
Ensure local delivery of Diaspora comments
2018-04-27 04:11:33 +00:00
4a792761d1
Item distribution: Better don't store these values
2018-04-26 20:11:29 +00:00
da3658c80d
Bugfix: The Distribition of public items failed with comments# Bitte geben Sie eine Commit-Beschreibung für Ihre Änderungen ein. Zeilen,
2018-04-26 19:47:12 +00:00
66547e5107
Don't distribute for ignored contacts
2018-04-25 16:00:21 +00:00
5019d46071
We only need the uid
2018-04-24 14:58:39 +00:00
5cf745af44
Item distribution is now done via the public post
2018-04-24 13:21:25 +00:00
ba35b19af6
Public federated items now always are having an entry with "uid=0"
2018-04-23 11:14:25 +00:00
Hypolite Petovan
6d88984ee5
Move Model\Item::getPlaintextPost to Model\ItemContent::getPlaintextPost
2018-04-21 20:50:13 -04:00
Hypolite Petovan
abc50eb3ae
Improve Model\Item::addLanguageInPostopts()
...
- Use Content\BBCode::toPlaintext method
- Rename $arr parameter to $item
- Rename $lng variable to $languages
2018-04-21 04:11:32 -04:00
Hypolite Petovan
5476da53aa
Move Content\BBCode::toPlaintext() to Model\Item::getPlaintextPost()
2018-04-21 04:09:45 -04:00
Hypolite Petovan
6e7c6ab0fa
Remove references to include/event
2018-03-23 06:32:34 -04:00
Hypolite Petovan
f7e2071117
Replace include/event function with method calls
...
- Updated scope of Model\Event methods
- Updated use list
2018-03-23 06:32:34 -04:00
b171fb1f24
Fix: Items with "uid=0" always had the "parent-uri" as "thr-parent"
2018-03-22 16:18:49 +00:00
b7a5e076fc
Fix: The ownership of forum items had been wrong
2018-03-11 18:12:38 +00:00
480fde7ca8
Bugfix: missing "use"
2018-03-08 20:48:00 +00:00
Hypolite Petovan
41678ec3cd
Add no_update flag to speed up Contact::getIdForURL instances
2018-03-01 19:54:45 -05:00
Hypolite Petovan
9f21e7f34f
Use default value for uid parameter in Contact::getIdForURL
2018-03-01 19:54:12 -05:00
9e721c0908
guid creation: Take the hostname from mail addresses for mail posts
2018-02-26 11:48:05 +00:00
2f2e7b9d5a
fetch_first is now used / additional logging
2018-02-22 09:51:59 +00:00
046352606e
Bugfix: $uid wasn't available in that context
2018-02-22 07:05:56 +00:00
2897333c28
Most queries are now done with the dba functions
2018-02-22 06:52:58 +00:00
8ad2ebbf47
$u is now $user
2018-02-21 23:10:29 +00:00
8e0496c040
Better naming of variables
2018-02-21 22:55:23 +00:00
5a91c746e9
$arr is now $item
2018-02-21 21:39:07 +00:00
82bd26edb9
The item class had been improved (e.g. database calls)
2018-02-21 21:08:37 +00:00
a59796d1d4
No gcontact-id anymore (It wasn't really used)
2018-02-21 05:15:55 +00:00
475969a1d3
The guid creation for posts is now done in a separate function
2018-02-21 04:13:13 +00:00
Hypolite Petovan
41cd5af54f
Merge pull request #4459 from annando/unmark-contact
...
Bugfix and improvements for unmarking potentially archived contacts
2018-02-14 17:01:17 -05:00
43b1eccbcd
Bugfix and improvements for unmarking potentially archived contacts
2018-02-14 21:18:16 +00: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
rabuzarus
af3a57376a
Item::tagDeliver(): remove contact as array key for hooks because it was never declared
2018-02-12 17:05:01 +01:00
rabuzarus
58b4169097
fix undeclared $uid variables in Item::insert()
2018-02-12 16:56:52 +01:00
rabuzarus
342b9af734
fix undeclared variables or wrong variable names (/src)
2018-02-12 16:08:28 +01:00
ee7c587693
Suppress content from hidden or blocked contacts
2018-02-10 12:34:10 +00:00
3890dfee4a
Wrong function order in Item::update
2018-02-07 20:09:37 +00:00
7be59dbeab
Priority and capitalisation
2018-02-06 16:32:00 +00:00
e609de2957
Many item calls are now isolated in a single function
2018-02-06 12:40:22 +00:00
Hypolite Petovan
9a76a14778
Missing dba::selectFirst in Model\Item
2018-02-05 20:45:12 -05:00
Adam Magness
4c93b592a5
Rebase
...
fix from rebase
2018-02-05 12:49:03 -05:00
Adam Magness
db8ef98537
Rename functions
...
rename functions from review comments
2018-02-05 12:48:22 -05:00
Adam Magness
992836e261
Some standards and dba
...
update some calls to use dba functions and some standards updates
2018-02-05 12:47:37 -05:00
Adam Magness
7ffcb25321
Update function names and calls
...
update function names and calls from other files
2018-02-05 12:47:04 -05:00
Adam Magness
f4fa8f085b
Functions to Item class
...
copy functions to Item class
2018-02-05 12:45:52 -05:00
Hypolite Petovan
2a5431a59e
Rename Model\Term methods
2018-02-04 16:48:50 -05:00
Hypolite Petovan
2a486903d1
Remove references to include/tags.php
2018-02-03 23:59:31 -05:00
Hypolite Petovan
9f3acceac7
Replace references to include/tags functions
2018-02-03 23:57:47 -05:00
Hypolite Petovan
0abe4158d2
Rename Term methods ahead of the move
...
- Rename createFromItemURI() to insertFromItemFileByUri()
- Rename createFromItem() to insertFromItemFileById()
2018-02-03 22:42:31 -05:00
Hypolite Petovan
593774b613
Update moved method Item::performLike() with DateTypeFormat
...
- Update use list
2018-02-03 08:56:55 -05:00
Hypolite Petovan
0454d0a670
Fix incorrect Temporal reference after Item function move rebase
2018-02-03 08:56:55 -05:00
Hypolite Petovan
5e7285b9ba
Move Temporal::convert() to DateTimeFormat::convert()
2018-02-03 08:56:55 -05:00
Hypolite Petovan
8aff8a76eb
Add Temporal::utcNow()
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
426fd7045a
Add Model\Item::performLike function
...
- Fix uses
2018-02-01 14:14:11 -05:00
6871481a78
Moved "limitBodySize"
2018-01-28 17:36:37 +00:00
2cb74909c0
Standards
2018-01-28 16:28:59 +00:00
630cdaeb96
Added some defaults
2018-01-28 16:16:21 +00:00
e080ea03c0
Function needed to be public, not private
2018-01-28 14:06:02 +00:00
7b27dda784
Most functions now moved from include/items.php
2018-01-28 11:18:08 +00:00
004f46e600
Standards
2018-01-21 00:18:31 +00:00
efa8dbcfb3
Relocate functions in items.php into several classes
2018-01-20 23:52:54 +00:00
7be49d9411
Don't delete - but only mark as deleted
2018-01-20 22:16:43 +00:00
2d66242b4f
The delete function is now changed to the new function
2018-01-17 23:22:01 +00:00
947a1b894f
Wall postings need to be treated especially as well.
2018-01-17 14:09:24 +00:00
2df5a14ce5
Delete could work now, needs testing
2018-01-17 07:08:49 +00:00
32c1c04a1c
Merge remote-tracking branch 'upstream/develop' into item-delete
2018-01-17 06:12:11 +00:00
3ecdbb6a59
Standards
2018-01-16 23:20:07 +00:00
63a4105a59
New item class function for delete
2018-01-16 23:16:53 +00:00
f30275f6db
Oh, standards ...
2018-01-16 22:46:20 +00:00
c4d3ab6878
Transfer all item shadow functions to the item class
2018-01-16 22:23:19 +00:00
Adam Magness
dc175b8e12
Update functions and calls
...
Change function names, calls and use dba functions.
2018-01-10 12:05:20 -05:00
bbd9d587c7
Return the number of affected rows
2018-01-09 22:16:16 +00:00
81925e3730
We now are having an item class and a method to change item entries
2018-01-09 21:13:45 +00:00