Harald Eilertsen
ced3113516
Remove unneccessary use statements
2026-03-07 12:00:56 +01:00
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
0522bd5593
include unapproved connections in deliverable_abook_xchans(). here is why: if they are at a hub, where an approved connection already exists, they will already receive the message since our defaultult permission allows view_stream. If view_stream is not allowed they will be filtered later in the process. We will however exclude blocked connections (approved or unapproved) already here now.
2025-03-27 12:43:53 +00:00
Mario Vavti
ccd52584a4
make sure to provide uid to drop_item() where applicable and check ownership when imporing feed items
2025-01-22 10:43:33 +01:00
Mario Vavti
0481901b59
refactor drop_item[s]() for containers
2024-11-08 20:18:20 +01:00
Mario
1ca91c49aa
add some docu
2024-04-17 07:36:49 +00:00
Harald Eilertsen
0dc959d9fe
Deprecate *_config() functions in core.
2024-03-24 09:58:21 +00:00
Mario
4f03272a5f
unify code for selecting deliverable abook xchans
2023-07-01 11:03:26 +00:00
Mario Vavti
20f4538db4
update remove_all_xchan_resources() and remove deletion of deprecated conv table
2023-04-13 22:28:08 +02:00
Mario Vavti
f4d39bd3c8
fix more php warnings
2022-11-02 16:52:42 +01:00
Mario
c8bc1b560b
missing field in query
2022-10-26 19:11:13 +00:00
Mario Vavti
9e95f189ed
fix php warnings
2022-10-26 17:56:04 +02:00
Mario
c6b459cf96
drop_item() requires the item id not the item array
2022-01-19 19:11:49 +00:00
Mario
5aefe0b74f
guest token xchan_network = "token" and remove permission checks since the guest tokens are now added to the abook automatically
2021-12-18 19:09:15 +00:00
Mario
b90d98fc2b
implement background deleting of items in contact_remove()
2021-12-17 20:26:36 +01:00
Mario
bfd3da43ac
access token refactor
2021-12-17 19:48:09 +01:00
Mario
2968bf8241
merge branch perms_ng into dev
2021-12-15 12:17:19 +00:00
Mario Vavti
efc203d958
fix blured profile images and pdl files
2021-12-03 16:25:42 +01:00
Mario
d6f81e139a
make sure to return if we have no xchan here
2021-10-03 12:22:33 +00:00
Mario
dd296e1aaa
more legacy mail cleanup - issue #1595
2021-08-17 18:18:52 +00:00
Mario
1fa4bc9ac0
remove most legacy zot quirks
2021-05-26 12:18:59 +00:00
Hilmar R
c26dede97f
get dev
2021-03-01 18:48:11 +01:00
Mario
6999b8d9b4
fix no channel_id provided for contact_remove() in reply_purge(). fix wrong notifier command
2021-01-03 20:17:45 +00:00
Mario Vavti
5cefdbf985
random_profile: return zot6 entries
2020-12-29 20:37:23 +01:00
Mario
2a154f8c9a
merge branch files_ng into dev
2020-12-14 11:02:20 +00:00
Mario
3acd5dcc07
remove source entries for removed contacts
2020-10-09 07:38:11 +00:00
Mario
be627c3f3a
changelog and use dbq() where apropriate in z6trans_connections()
2020-09-22 08:23:28 +00:00
Mario
ffe429be65
transition connections to zot6 if their site has been updated
2020-04-01 07:44:07 +00:00
zotlabs
bbc98db6b4
Clarify private mail deletion policy. Related to issue #1391 .
2019-08-31 14:43:08 -07:00
zotlabs
f127c55802
removing items from ex-connections turns out to be more complicated than originally envisioned
2019-05-03 04:09:04 -07:00
zotlabs
319b0acdd8
fix item query
2019-05-02 23:58:51 -07:00
zotlabs
7b4cb31a10
when removed items for unfriended connections, check if the parent has been retained, not just the item
2019-05-02 22:34:34 -07:00
Max Kostikov
9f89f3190a
Update connections.php
2018-09-27 23:55:20 +02:00
Mario Vavti
ec3a066e4e
fix sql error
2018-07-26 09:32:52 +02:00
zotlabs
5ce50d0a2e
mangled urls on redirects
2018-07-18 17:05:38 -07:00
zotlabs
eedfb7de32
slightly more memory efficient way to drop posts of removed connections
2018-06-15 16:28:36 -07:00
zotlabs
5d83469621
when removing a connection, use the same rules as expire: don't remove items that are starred, filed, or that you replied to.
2018-05-31 16:11:51 -07:00
Mario Vavti
d872a0ca86
activitypub xchans do not have an xchan_addr. use xchan_url for the follow button if we do not find an xchan_addr
2018-04-30 14:33:35 +02:00
zotlabs
6844d7c752
don't provide a connect button for transient identities
2018-04-08 22:53:04 -07:00
zotlabs
08274ffab7
put vcard widget with author of top-level post on display page
2018-03-27 18:01:20 -07:00
Mario Vavti
aa4f8b2901
add xchan_network = zot and xchan_deleted = 0 to the random_profile() query
2018-03-15 13:34:40 +01:00
zotlabs
4fef29e61c
memory overflow trying to delete a connection with a very high noise to signal ratio
2017-10-29 22:21:52 -07:00
Mario Vavti
21b2c0afa3
fix issue #837 - w2w posts not removed in contact_remove()
2017-10-19 10:21:47 +02:00
zotlabs
b5966041be
more zot6
2017-09-13 20:40:01 -07:00
zotlabs
4d794103be
testing owa
2017-09-07 18:09:31 -07:00
zotlabs
9dbd997141
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into xdev_merge
2017-06-07 17:11:35 -07:00
zotlabs
2e35dc648f
provide hook when deleting a connection - we need this to clean up dangling PuSH subscriptions
2017-06-07 16:26:24 -07:00
git-marijus
c4ed04fc82
convert randprof to use chanlink_hash() instead of chanlink_url() and filter sys channels by xchan.xchan_system instead of xchan_addr != sys@%
2017-06-03 10:13:42 +02:00
zotlabs
98c18f416a
remove default for text/mediumtext sql fields
2017-05-31 16:00:33 -07:00
zotlabs
84064b90a6
disable oauth2 until I can get back to it - it's throwing typos
2017-05-10 22:15:01 -07:00