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
8d9623674d
fix issue where reply-to button is not diplayed for anonymous visitors allthough permission is granted
2026-01-29 17:25:45 +01:00
Mario
63bc905061
wrong order of args
2025-11-10 21:03:22 +00:00
Mario
573c6f3df3
shares kiss
2025-11-10 19:50:10 +00:00
Mario
66512f4e51
blog mode fixes
2025-06-12 11:51:01 +00:00
Mario
71a06af8a9
consistent naming
2025-06-12 10:47:04 +00:00
Mario
6649eca2bf
move expand to item menu to get rid of the single click lag
2025-06-04 14:34:44 +00:00
Mario
e35d4b6be0
only show load more if total comments > loaded comments
2025-05-30 09:55:26 +00:00
Mario
8a8219fe72
improved wording
2025-05-29 18:38:11 +00:00
Mario
20148d23f1
toplevel comments pagination: initial commit
2025-05-29 10:13:32 +00:00
Mario
7cd44e2112
minor cleanup
2025-05-27 08:31:37 +00:00
Mario
8d1fea7ec3
new version of items_by_parent_ids() and item_reaction_sql() with much better performance, streamline rsvp naming convention and some preparatory work for comment lazy loading (unfinshed)
2025-05-27 08:04:36 +00:00
Harald Eilertsen
961996a051
Remove duplicate array key in Lib/ThreadItem.php
...
The key `parent` was set twice in ThreadItem::get_template_data(), once
cast to an intvalue, and later raw from whatever type $item['parent']
held.
Since the value not converted to an int was the one used, this is what
has been kept in this patch, so as to not change existing behaviour.
2025-05-22 19:03:06 +02:00
Mario
48162fc8d6
fix php warning
2025-05-21 09:13:58 +00:00
Mario
3850cd9641
remove leftover after recent changes
2025-05-19 08:18:47 +00:00
Mario
1666ca7cb7
actually fix thr_parent arrows
2025-05-17 18:42:42 +00:00
Mario
7b8e47b49d
revert moving thr_parent retrieval to SQL in favor of a more simple solution (fixes SQL error in postgres and strict mysql)
2025-05-17 16:19:05 +00:00
Mario
5c3f2f9469
first part of cleanups for the conv libs and move thr_parent_uuid retrieval to sql
2025-05-15 12:55:44 +00:00
Mario
3e07eb78fd
fix announce source title (addr) not correct
2025-05-15 11:00:18 +00:00
Mario
a84e6e9747
streamline show more/less handling
2025-05-14 08:19:42 +00:00
Mario
b674a1869e
undo introduction of new argument in get_template_data(). this can be accomplished more straightforward
2025-05-11 16:01:49 +00:00
Mario
4fa9f30189
cleanup, add some doco an add missing counts of observer event rsvps
2025-05-09 20:24:25 +00:00
Mario
57ae3325e0
allow to switch conv mode per channel
2025-05-09 19:13:49 +00:00
Mario
918377a67b
provide commentable state and minor cleanup
2025-05-08 10:27:57 +00:00
Mario
ac5d22d514
refactor doreply() and move reply functionality to modal
2025-05-07 12:31:47 +00:00
Mario
b694ed6229
handle blog_mode in conv template
2025-05-04 04:36:12 +00:00
Mario
b39fb945f5
move look up of thr_parents to separate function and minor fixes
2025-05-02 13:24:58 +00:00
Mario
3fcd5a0f0f
fix display issue
2025-05-02 07:52:41 +00:00
Mario
881f540e43
some visual changes
2025-04-30 19:31:31 +00:00
Mario
e5cd6330b3
default to threaded
2025-04-30 14:42:09 +00:00
Mario
b6f0fe7583
refactor with permissions
2025-04-29 09:52:30 +00:00
Mario Vavti
763a4f1fbb
implement observer activity visibility
2025-04-26 10:46:48 +02:00
Mario
ba9637e129
lazy load - initial commit
2025-04-25 12:46:30 +00:00
Mario
fd0f6d4fa8
check if the uuid is mapped before using it
2025-04-16 08:15:30 +00:00
Mario
a822e94f9b
move jot popup handling to template, port photo selector to vanilla javascript and enable it for comments if applicable
2025-04-04 10:51:51 +00:00
Rocky
b6560e5456
Highlight_mark_button3
2025-02-14 14:56:17 +00: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
d59d808883
more cleanup
2024-12-07 19:38:18 +00:00
Mario
b59fe77906
provide a comments disabled indicator and some cleanup
2024-12-07 19:34:30 +00:00
Mario Vavti
a0c54c5f04
make sure to store target information when decoding and indicate contained conversations with a colored border for now
2024-11-09 10:55:10 +01:00
Mario
e0a91bed7a
allow to file items from the public stream
2024-10-23 12:04:15 +00:00
Mario
294359d7f5
improved content and comment collapse/expand rendering
2024-08-04 13:40:22 +00:00
Mario
7eb23aa8b8
fa2bi fixes
2024-08-02 15:08:27 +00:00
Mario
8c4269d037
fa2bi continued
2024-07-29 09:38:51 +00:00
Mario
ae140465d7
only allow repeats if we are the profile owner and minor code simplification
2024-07-23 08:44:18 +00:00
Mario
39e5e29ce5
fix logic and add translateable strings
2024-07-22 21:19:28 +00:00
Mario
4e35d34226
item buttons redesign - initial checkin
2024-07-22 19:07:19 +00:00
Mario
1c34c354cf
fix issue where event items were parsed multiple times
2024-06-21 10:18:40 +00:00
Mario
9348bd6ea5
remove unused variable and superfluous backslash
2024-06-10 08:02:32 +00:00
Harald Eilertsen
0dc959d9fe
Deprecate *_config() functions in core.
2024-03-24 09:58:21 +00:00