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
f36d8e4bd2
fix fatal error if variable is an empty string
2025-03-07 08:38:33 +00:00
Mario
00c1509549
update string to match with the autotime string
2025-03-05 16:42:25 +00:00
Mario Vavti
63aa50eb8d
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
2025-02-26 16:37:38 +01:00
Mario Vavti
7fb13f23fe
fix docu
2025-02-26 16:37:22 +01:00
Mario
65156a0e4d
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
2025-02-26 15:33:05 +00:00
Mario
e3eebcd95d
calculate observer.baseurl from xchan_url since xchan_connurl is only set for zot xchans
2025-02-26 15:32:36 +00:00
Mario Vavti
9eff1a08d4
refactor unparse_url() to allow to return a custom field set only and add tests
2025-02-26 16:26:40 +01:00
Mario
cfcac590c3
refine text
2025-02-26 12:57:38 +00:00
Mario
872415bffe
fix an issue where some participants could not post to forums
2025-02-26 12:52:27 +00:00
Mario
a46b781664
slightly improve event object rendering
2025-02-22 14:43:25 +00:00
Mario
b77fac43c8
feedutils: fix php warnings and style
2025-02-21 09:51:59 +00:00
Rocky
b6560e5456
Highlight_mark_button3
2025-02-14 14:56:17 +00:00
Mario
33fcb43173
Merge branch 'dba_pdo-insert-and-update' into 'dev'
...
Add an insert and update methods to dba_pdo
See merge request hubzilla/core!2181
2025-02-01 10:49:47 +00:00
Mario Vavti
0a17b83578
calling fetch_post_tags() will add duplicate items here
2025-02-01 01:02:06 +01:00
Harald Eilertsen
e39b2eb7b9
Add an dba_pdo::update method
...
This is a convenience funcition to make it easier to update an existing
row in a database table.
2025-01-29 12:42:44 +01:00
Harald Eilertsen
9f8248cc9c
Use returning clause on dba_pdo::insert where supported
...
By using the returning clause when inserting a new record, we get back
the inserted record right away; thus saving us an extra roundtrip to the
database.
Both PostgreSQL and MariaDB supports this clause, but MySQL don't. In
that case we fall back to manually fetching the last inserted row.
2025-01-29 12:42:44 +01:00
Harald Eilertsen
71e4326606
Fetch the server version on dba_pdo::connect.
...
The server version string is useful to among other things check whether
we are running on a real MySQL system, or MariaDB. Instead of fetching
it every time we need it, cache it in the dba_pdo object when we connect
to the db.
2025-01-29 12:42:44 +01:00
Harald Eilertsen
4625ffa6b4
Fix return value from dba_pdo::q()
...
According to the documentation, this function should never return null.
Still that's what it did if a non-select query raised a PDOException.
This patch fixes this, so that it so that the function conforms to the
docs.
2025-01-29 12:42:44 +01:00
Harald Eilertsen
3e6a646603
Add an insert method to dba_pdo
...
A common use case is to insert a record into a database table, but also
instantiate an object from the inserted data. This requires that we know
the value of any default or calculated columns that is filled in by the
database when the row is inserter.
This patch adds a `insert` method to pda_dbo that will insert a row, and
immediately fetch the row back from the database – including the default
and calculated values not specified by the insert itself.
2025-01-29 12:42:36 +01:00
Mario Vavti
174469970a
return if $furl is empty for some reason
2025-01-24 12:43:12 +01:00
Mario Vavti
89b254dc1c
add target and tgt_type tou sourced rss items if we rewrite them to our own
2025-01-24 00:11:26 +01:00
Mario Vavti
8e51988e96
unescape_tags() on URLs before we start messing with them
2025-01-23 21:24:06 +01: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
2980827925
fix another possible loop
2024-12-26 07:55:08 +00:00
Mario
45a78dcbc0
this should fix the infinite loop caused by a regression in Daemon/Expire
2024-12-25 20:53:32 +00:00
Mario
2da55d3bd8
remove jquery.timeago.js in favor of a native js implementation
2024-12-12 14:18:55 +00:00
Mario
93f72a53f5
introduce item_forwardable() and check it before we call the notifier to possibly safe some processes - test will follow, also add some other possibly blocking flags to the add item
2024-12-10 10:27:48 +00:00
Mario
7785487d77
fix delayed post handling in cron, always set item_delayed if we select a create date
2024-12-08 22:46:21 +00:00
Mario Vavti
bb0a22ee58
add test for relative_time()
2024-12-07 23:49:17 +01:00
Mario
e88ae54bef
add more indicators and a new function to return relative time in the past and the future
2024-12-07 20:41:13 +00:00
Mario
66d502d8e1
an attempt to fix some comments on/off anomalies
2024-12-06 19:24:14 +00:00
Mario
2e13640ab4
wrong class
2024-12-05 13:14:07 +00:00
Mario Vavti
9e2f3dc05f
fix more issues reported by phpstan
2024-11-27 10:25:37 +01:00
Mario
464b331deb
Merge branch 'module-admin-accounts-enhancements' into 'dev'
...
Fix and refactor module Admin\Accounts part I
See merge request hubzilla/core!2173
2024-11-27 08:15:59 +00:00
Harald Eilertsen
0189d04614
Fix and refactor module Admin\Accounts part I
2024-11-27 08:15:59 +00:00
Mario
0da51e0f71
fix superfluous slash in some cases
2024-11-25 08:11:33 +00:00
Mario
dcef9f61b5
remove logging
2024-11-22 10:28:21 +00:00
Harald Eilertsen
3a2f787f96
Add Zotlabs\Lib\Mailer class to replace z_mail function.
2024-11-22 09:59:14 +00:00
Mario Vavti
9acc73b273
some cleanup for mod magic
2024-11-18 23:15:29 +01:00
Mario Vavti
5cfb3842f1
more phpstan errors
2024-11-17 20:52:13 +01:00
Mario Vavti
25b089c1a9
fix some errors detected by phpstan
2024-11-17 16:17:05 +01:00
Harald Eilertsen
5b7f8d986c
Fix #1879 : Emails with + in local part was rejected.
2024-11-16 13:45:36 +01:00
Mario
01da60b385
Merge branch 'various-phpstan-issues' into 'dev'
...
Several issues discovered by PHPStan
See merge request hubzilla/core!2168
2024-11-14 18:40:15 +00:00
Harald Eilertsen
951800eca6
Several issues discovered by PHPStan
2024-11-14 18:40:15 +00:00
Mario
b5c07e4c01
this is not true anymore - check owner perms
2024-11-13 11:08:18 +00:00
Mario
39d0a3f1f6
containers: poll testing
2024-11-11 22:25:53 +00:00
Mario Vavti
17411a501c
containers: testing sourced items
2024-11-10 23:37:45 +01:00
Mario Vavti
b24b409a01
Merge branch 'dev' into containers
2024-11-10 19:01:40 +01:00
Mario Vavti
e52714ed16
make sure to notify the drop if necessary
2024-11-10 18:53:46 +01:00