Harald Eilertsen
cbd208eea3
Remove use of NULL_DATE constant in core
...
The NULL_DATE constant is defined conditionally in the DBA static class.
This causes issues with static analyzing tools like PHPStan, because
they can not really know if the constant is defined or not.
We could make PHPStan ignore this, but since there already is a
`get_null_date()` method on the `dba_driver` class, this patch
changes the code to use this method instead.
We could also use the public static attribute `$null_date` on the DBA
class directly, but using a method feels cleaner, and allows for making
the attribute private, or even removing it completely at some later
time.
I'm not removing the NULL_DATE constant for now, in case it is in use by
any extensions.
2026-03-07 11:15:46 +01:00
Mario Vavti
cb7dc2059a
Remove capability to update xchan entries via api. If this functionality is required it should be implemented over a channel endpoint where xchan and channel info would be updated after verification.
2026-01-30 13:34:54 +01:00
Mario
afe31160db
mod item: deprecate x() and use $_POST instead of $_REQUEST
2025-04-24 06:41:43 +00:00
Mario
2e15207d0b
fix spacing issues in mod wall_attach and make save_chunk() deal with userfile and file array keys
2024-04-17 07:45:20 +00:00
Mario
3dd7394247
AS2
2024-02-25 19:29:50 +00:00
Mario
2c7c9ae2d7
provide files total
2021-09-30 15:33:10 +00:00
Mario
2688abf25a
revise content import/export part 1
2021-09-29 19:43:22 +00:00
Hilmar R
c26dede97f
get dev
2021-03-01 18:48:11 +01:00
zotlabs
7ae86d29d2
add api_verify to api_zot
2020-07-22 16:23:38 -07:00
DM42.Net (Matt Dent)
07f850ed15
Make export_page API endpoint match ZAP
2019-06-23 20:23:03 -04:00
zotlabs
1ff97754af
issues uncovered testing combined item/file import
2019-02-24 21:43:15 -08:00
zotlabs
20e43311db
zot api changes to support combined content (items+files) import addon
2019-02-24 14:46:09 -08:00
Max Kostikov
ffe80c66d7
Update api_zot.php
2018-09-27 23:58:49 +02:00
zotlabs
8611e7f8a6
remove unused mindate parameter in the network/stream API method
2018-05-20 13:29:48 -07:00
zotlabs
764d6e3407
zot api: provide channel list function (list all channel usernames [e.g. channel_address] associated with the logged in account)
2018-01-18 17:20:30 -08:00
zotlabs
27bc5fa4b0
improvements to file import/export
2017-12-10 15:25:44 -08:00
zotlabs
732065bf13
channel export - use a selected list of functional data categories to export; this allows one to export single data sets instead of always exporting everything we know about
2017-01-31 15:28:25 -08:00
zotlabs
7b065365e0
consolidate hubloc storage
2017-01-30 15:01:22 -08:00
zotlabs
2e2254371a
move api version call back to core
2016-12-30 02:45:16 -08:00
zotlabs
b530d1d449
perform input validation on xchan_store and re-enable the post method of the xchan api endpoint.
2016-12-26 13:10:24 -08:00
zotlabs
b407074281
always check api_user
2016-12-07 19:04:24 -08:00
zotlabs
07706b41f4
document the api filedata call
2016-12-07 15:22:26 -08:00
zotlabs
b3963456c0
attach_list_files bugfix
2016-12-06 21:11:39 -08:00
zotlabs
641e9ff508
api files improvements/fixes and documentation
2016-12-06 20:34:23 -08:00
zotlabs
df23ef36c7
api_zot: implement /api/z/1.0/network/stream and fix /api/z/1.0/channel/stream
2016-12-04 17:07:25 -08:00
zotlabs
6346c00527
bugfix for api group_members
2016-12-04 11:42:40 -08:00
zotlabs
f5f1b9602a
rename api endpoint yet again. item/store appears to be blacklisted in some hosting environments.
2016-12-03 12:08:58 -08:00
zotlabs
8e6ff32c97
more api work for item/store and doco
2016-12-02 23:09:25 -08:00
zotlabs
e776e79c1e
api function item/new renamed to item/store as that more closely reflects its purpose. It can also be used to store an edit of an existing item. I believe this is a reasonably safe change at this time as I don't believe there is any software currently making use of this call - instead using the Twitter API which is now a plugin.
...
Also some work to make the install documentation agnostic to project name variations. This is not yet complete.
2016-12-02 21:54:50 -08:00
zotlabs
e990a35a91
xchan_fetch() returns a simplified structure
2016-11-14 21:06:58 -08:00
zotlabs
3e286f4f19
update api perm_allowed to return all perms if no perm specified
2016-11-14 20:59:10 -08:00
zotlabs
e0a83b4b94
API: add GET /api/z/1.0/perm_allowed
2016-11-14 20:50:55 -08:00
zotlabs
b9728a96ce
API: add GET /api/z/1.0/abconfig
2016-11-14 20:30:28 -08:00
zotlabs
9055d0910c
API: add GET api/z/1.0/abook
2016-11-14 17:47:44 -08:00
zotlabs
cf5c803fe0
api: allow group member list to use a group name or id
2016-11-13 23:28:03 -08:00
zotlabs
fabf278633
more api re-org
2016-11-08 16:55:29 -08:00
zotlabs
547c700764
misplaced parens
2016-10-23 17:23:53 -07:00
zotlabs
03aacc35b3
start on the API re-write
2016-10-11 16:13:52 -07:00