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
a2dde34b1b
refactor notifications widget and updateConvItems() to not require jquery
2024-12-19 18:49:07 +00:00
Mario
241cc1ad63
storing info and notice messages in the session has some disadvantages if the functions are called via ajax. revert to storing them in xconfig.
2024-07-28 18:44:07 +00:00
Mario
c5bca0279c
Revert "Revert "sse: reset session after connection aborted""
...
This reverts commit c71eb401c0
2024-07-20 13:09:05 +00:00
Mario
3fca63a15f
Revert "Revert "more work on sse sys messages""
...
This reverts commit c22f633ae0
2024-07-20 13:08:52 +00:00
Mario
c47900f366
Revert "sse: more work on notifications"
...
This reverts commit 82f69018a6
2024-07-20 13:08:31 +00:00
Mario
82f69018a6
sse: more work on notifications
2024-07-20 10:15:44 +00:00
Mario
c22f633ae0
Revert "more work on sse sys messages"
...
This reverts commit 983fc84f28
2024-07-20 10:00:47 +00:00
Mario
c71eb401c0
Revert "sse: reset session after connection aborted"
...
This reverts commit 3d03c24f06
2024-07-20 10:00:14 +00:00
Mario
3d03c24f06
sse: reset session after connection aborted
2024-07-19 23:14:47 +00:00
Mario
983fc84f28
more work on sse sys messages
2024-07-19 19:35:21 +00:00
Mario
28c8229218
always use ob_end_flush() and reduce code duplication
2024-07-15 10:16:54 +00:00
Mario
d2b06995c7
more work on making sure system notifications appear on page reload
2024-07-10 08:40:51 +00:00
Mario
5cbae0fb81
improve handling of sse especially in relation with page reloads
2024-07-08 20:35:08 +00:00
Harald Eilertsen
0dc959d9fe
Deprecate *_config() functions in core.
2024-03-24 09:58:21 +00:00
Mario
b96dc11ddd
improve sse loop
2023-01-02 18:37:36 +00:00
Mario Vavti
1e4718eae1
do not always trigger a sse event if pubs notification are off or the app is not installed for the channel
2022-11-24 16:42:09 +01:00
Mario Vavti
9346a06f35
also check for vnotify
2021-10-01 22:48:09 +02:00
Mario Vavti
250e917c6e
only show sse pubs if the app is installed
2021-10-01 22:44:26 +02:00
Max Kostikov
a03423794a
Random PHP 8 fixes
2021-05-14 08:56:06 +00:00
Mario
598c3aa336
sse: make sure to also bootstrap info and notice
2021-03-22 13:37:01 +01:00
Mario
b63c5f2785
Polling fallback to server sent events. Polling is the default. SSE must be enabled in /admin/site > Advanced > Enable SSE Notifications if desired.
2020-11-14 21:28:50 +00:00
Mario
2b08519f5a
sse: improve caching fix an issue with removing notifications and move chatpresence expiration to cron
2019-11-28 08:22:53 +00:00
Mario
965c51c2d4
sse: implement notifications for anonymous visitors (info, notice and pubs) and fix a potential memory leak
2019-11-15 20:29:58 +00:00
Mario
f3fa2d853a
sse: make sure we have an observer
2019-11-13 14:30:54 +00:00
Mario
a982aecd5b
sse: revert to reset to array
2019-11-13 13:51:00 +00:00
Mario
e5e16da8cb
sse: reset to empty string instead of empty array
2019-11-13 13:26:28 +00:00
Mario
6e36820b1b
sse: do not delete xconfig - reset it
2019-11-12 21:15:01 +00:00
Mario
209d06a8f7
better detection for who to send sys notifications (needs addons update)
2019-11-12 10:11:58 +00:00
Mario
b033597ada
sse notifications
2019-11-11 21:30:38 +01:00