Mario
dc03263bef
Merge branch 'system-status-activity-widget' into 'dev'
...
Add system status activity widget to HQ for admins
See merge request hubzilla/core!2266
2026-03-01 18:42:54 +00:00
Harald Eilertsen
738797467d
Turn dba_driver params into attributes
...
To allow for inspecting the params used to connect to the database, we
now save the params in the dba_driver object instance as readonly
attributes. An exception is made to the $pass parameter which is set to
protected access, to make it slightly harder to accidentally leak it.
Project......: Performance Profiling
Sponsored-by.: NLnet NGI0 Commons Fund
2026-02-23 21:20:52 +01:00
Mario
b6bec6f7b7
reverse logic
2026-02-14 10:29:14 +00:00
Mario
31b5cfe7ef
if the event timezone is different from the channel timezone, display the timezone we have adjusted to instead of the actual event timezone. Otherwise we might create UX confusion about if the displayed time is already timezone adjusted or not.
2026-02-13 08:50:25 +00:00
Mario
4c0b37db66
fix required $x variable overwritten with attach_mkdirp() data on update
2026-02-12 18:18:00 +00: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
5cb4db0353
Merge branch 'dev-send_reg_approval' into 'dev'
...
(Re?)enable email to user after account approval
See merge request hubzilla/core!2263
2026-01-29 10:45:25 +00:00
ltning
268fccdb30
Fix SQL in send_reg_confirmation_email_from_register
2026-01-28 20:06:59 +00:00
ltning
bb7689be93
Return boolean instead of nonexistent array
2026-01-28 02:51:58 +00:00
ltning
bd63af69b2
(Re?)enable email to user after account approval
...
Existing function account_allow() does not seem to be used a whole
lot, and certainly not when approving a registration request.
Created new function send_reg_confirmation_email_from_register
(going for longest-function-name-in-Hubzilla) which attempts to
send such a confirmation email, and also a new email template.
Plugged this into the create_account_from_register function.
Open question: Should the sending of this email be among the success
criteria for the create_account_from_register function?
2026-01-28 02:51:46 +00:00
ltning
e5d4358d61
Clean up send_reg_approval_email_from_register, new email template
...
Since there is no easy way to produce direct links to approve/reject
registrations, create new email template which simply links to the
Accounts admin page.
In response to comments:
- Add type annotations
- Simplify some 'if' statements
- add and fix some whitespace
- simplify input arguments to the function
2026-01-27 16:32:16 +00:00
ltning
fe4d6229a4
Add new send_reg_approval_email_from_register function
...
Current send_reg_approval_email function expects account to already
exist, and does not seem to be called anywhere. New function takes
necessary information from the register table.
Added call to new function in Regate.php after verification is
done. Will fail and roll back if the function call fails or if no
admin accounts were found to notify (delivered<1).
2026-01-27 16:32:16 +00:00
Mario Vavti
9019636449
update attach.filetype field length to match photo.mimetype field length and attempt to find mimetype with finfo class if applicable.
2026-01-05 15:34:42 +01:00
Mario Vavti
7675ed0145
add (not exactly correct -> see fixme) mime types for docx and xlsx
2026-01-05 12:14:01 +01:00
Mario
f25211d7ff
Merge branch 'xchan-fetch-escape-args' into 'dev'
...
Escape args in xchan_fetch
See merge request hubzilla/core!2252
2026-01-04 19:53:51 +00:00
Mario
1323ea8e18
Merge branch 'dev' into 'dev'
...
move shared post formatting to its own tpl
See merge request hubzilla/core!2248
2026-01-04 19:36:06 +00:00
Saiwal K
9f98f6bbd5
move shared post formatting to its own tpl
2026-01-04 19:36:06 +00:00
Harald Eilertsen
cedc6c4230
Escape args in xchan_fetch
2026-01-04 14:55:03 +01:00
Mario Vavti
e295765bef
fix typo and wrongedited timestamp. also add data-{id, type} to cloud directory listings
2026-01-02 15:31:54 +01:00
Mario
87f79381d9
MessageFilter: move decoding to the caller and also check the summary field
2025-12-19 08:24:22 +00:00
Mario
28746891c8
curl_close() is deprected and noop since PHP version 8.0
2025-12-16 11:47:10 +00:00
Mario Vavti
48dbba2f4d
implement new version of MessageFilter derived from forte and add some more tests
2025-12-12 12:42:01 +01:00
Mario
bb49a51be3
feed: fix channel links and check for top=0. also filter out Add and Remove activities when building the feed (we should probably do this in fetch_items() but that will require some refactoring
2025-12-09 12:05:19 +00:00
Mario
be5c8aa2a3
more work on determining whether an event should be adjusted is an all-day event
2025-12-09 08:24:53 +00:00
Mario
643d25b34b
simplify and be slightly more strict to define allday events
2025-12-05 22:38:20 +00:00
Mario Vavti
c29d79854e
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
2025-12-05 22:24:33 +01:00
Mario
2834544451
an attempt to better deal with events that have no endTime and events that inline timezone offset in the timestamp
2025-12-05 21:16:30 +00:00
Mario Vavti
60eb8aa42b
provide the event hash and timezone in the event object
2025-12-05 22:04:52 +01:00
Harald Eilertsen
94e5aa172c
Update API docs for hooks
2025-11-29 22:52:30 +01:00
Mario
9e5344d624
fix typo in last commit
2025-11-22 19:57:28 +00:00
Mario
4c122fd3b3
do not attempt tag delivery if not item type post - fix issue #1941
2025-11-22 19:54:58 +00:00
Mario
7fcc770fbf
rename (un)serialise() -> json_(un)serialize()
2025-11-21 20:43:35 +00:00
Mario
3878dbd6bd
show viewsource link for pubstream items
2025-11-21 08:27:53 +00:00
Mario
7cadb43029
fix insufficient target attribution for forums - channel_url() requires the channel array not the address
2025-11-20 23:05:12 +00:00
Mario
ad017baaa6
singleton object cache - initial commit
2025-11-20 20:41:20 +00:00
Mario Vavti
6f9348540e
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
2025-11-14 10:45:29 +01:00
Mario Vavti
51b667020e
use json serialisation for iconfig
2025-11-14 10:44:56 +01:00
Harald Eilertsen
1e92aeb7f9
Improve dba_pdo::insert function
2025-11-13 16:14:05 +00:00
Mario
9c27f94709
move language specific folders into its own subfolder in /view
2025-11-07 14:38:55 +00:00
Mario
a99e067b91
remove deprecated sjcl library and references
2025-11-07 12:39:58 +00:00
Mario
aa5bd9bbfc
do not allow observer posting files to wall if they do not have permission - issue #1940 part two
2025-11-03 08:50:39 +00:00
Mario
4ae65a63c6
photo_upload(): moderate photo items where observer has write_storage perm but not post_wall perm - fix issue #1940
2025-10-22 18:31:49 +00:00
Mario Vavti
b50aa43542
remove redundant args
2025-10-21 21:09:13 +02:00
Mario Vavti
040b52a1d5
fix undefined constant
2025-10-21 18:57:15 +02:00
Mario
c8c9e4a901
fix some of the constant not found errors
2025-10-21 16:00:06 +00:00
Mario
3cdfa94c29
announced toplevel items will have type Announce in our case - possible fix for issue #1936
2025-10-10 15:47:49 +00:00
Mario
1a68dbccf1
remove check for current user and apply update
2025-10-06 20:42:27 +00:00
Mario
548b0c4931
Merge branch 'misc-phpstan-fixes' into 'dev'
...
Fix remaining issues flagged by PHPStan level 0
See merge request hubzilla/core!2228
2025-10-02 08:36:00 +00:00
Mario
121fb74c6c
tagcloud: remove redundant f arg
2025-09-15 07:12:09 +00:00
Harald Eilertsen
176a7cb9b5
Comment duplicate keys in xchan_change_key func
...
PHP arrays can't have duplicate keys, so adding an entry with the same
key again will replace the existing entry with the later one. This patch
comment out the entries that in any case are replaced, so functionally
it should be equivalent to what was before. (But still probably wrong!)
2025-09-12 21:51:24 +02:00