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
Harald Eilertsen
b31123ae2f
Fix missing return from translate_scope function
...
Also make sure the output is escaped wherever this function is used.
2025-09-12 21:51:24 +02:00
Harald Eilertsen
330c8ca890
Fix ref to undefined var in account.php
2025-09-12 21:51:24 +02:00
Harald Eilertsen
bb4c08caf0
PHPStan: Ignore missing function make_xchan_hash
...
This function does not exist, but is called from a function that is
never used. For rationale for why this code is kept, see the discussion
here:
https://framagit.org/hubzilla/core/-/merge_requests/2209
2025-09-12 21:51:24 +02:00
Harald Eilertsen
f8795288a1
More misc fixes in verify_email_address
2025-09-12 21:51:24 +02:00
Harald Eilertsen
107b8e67d2
Fix/complete template args in verify_email_address
2025-09-12 21:51:24 +02:00
Harald Eilertsen
5a36a37b9f
Fix template language in verify_email_address
2025-09-12 21:51:24 +02:00
Harald Eilertsen
0910ae0e52
Fix db query in verify_email_address
2025-09-12 21:51:24 +02:00
Harald Eilertsen
c6c5a8b5e0
Cleanup verify_email_address
...
- Add type annotations, and change arg to a string instead of array.
Only the email address was used anyways.
- Fix indentation
- Improve API doc and remove unnecessary comments.
2025-09-12 21:51:24 +02:00
Harald Eilertsen
da2c57c432
Fix undefined var $hash in verify_email_address
2025-09-12 21:51:24 +02:00
Harald Eilertsen
e7523e7fc5
Remove ref to undefined variables in get_zcard()
2025-09-12 21:51:24 +02:00
Harald Eilertsen
e52d3639de
Fix missing returns in plugin.php
...
Flagged by phpstan
2025-09-12 21:51:24 +02:00
Mario
1a27edf6dd
Merge branch 'remove-dead-code-in-handle-tag' into 'dev'
...
Remove dead code in handle_tag function
See merge request hubzilla/core!2227
2025-09-12 16:35:32 +00:00
Harald Eilertsen
6b7478c5a5
Remove dead code in handle_tag function
...
Since $profile is only ever set in the other branch of the if/else
construct, this code will never execute.
2025-09-05 23:19:07 +02:00
SK
644e3b790c
uncommented register_account hook
...
Hook is required for notify-admin addon to work.
2025-09-02 19:43:35 +05:30
Mario
bc7f8b15a8
dismiss our own votes from select query. they are not flagged with item_hidden because otherwise they would not be delivered to the poll owner. received votes are (and should be) flagged with item_hidden so that they are not being relayed.
2025-08-11 23:13:26 +00:00
Mario
02111ad649
start transition deprecated AS1 item.verb vocabulary to AS2 on demand
2025-08-11 22:36:35 +00:00
Mario
eafa1d56c3
fix regression in retrieving channel address in wtagblock() and whitespace fixes
2025-08-08 14:03:28 +00:00
Mario
51c79aecac
make item_normal() deal with various item types and add missing reactions modal
2025-08-07 22:36:35 +00:00
Mario
9343f00918
improve memory consumption when deleting big threads
2025-08-07 19:05:58 +00:00
Mario
e98f019b16
fix regression in pubstream tag view, use correct prefixes in pub_tagadelic() and some whitespace fixes
2025-07-30 16:22:08 +00:00
Mario
50f5fcb16b
always update photo DB entries on move - fixes issue where photos were not found by photo picker after folder rename as reported by chris
2025-07-30 06:45:25 +00:00
Saiwal K
4d6bebb846
Fix pubstream tagcloud and category cloud
2025-07-27 08:14:41 +00:00
Mario
6f158f37c9
Merge branch 'improve-derived-themes' into 'dev'
...
Add 'extends' attribute to theme info
See merge request hubzilla/core!2217
2025-07-23 07:54:30 +00:00
Mario
f88d2ba0c4
Merge branch 'tag-cloud-tpl-fix' into 'dev'
...
Add tpl for tagcloud and directory keyword cloud
See merge request hubzilla/core!2216
2025-07-23 07:53:10 +00:00
Saiwal K
170f157aae
Add tpl for tagcloud and directory keyword cloud
2025-07-23 07:53:09 +00:00
Mario
3eeaca4aab
tagadelic: look up toplevels only
2025-07-22 10:32:57 +00:00
Mario
ae8e9bc353
the item_wall directive is not required here since we are looking for parent items which we own - remove it since it will make the DB engine use the wrong index in certain cases. also remove duplication of item_type directive when looking up articles
2025-07-22 09:32:20 +00:00
Harald Eilertsen
308380fe52
Add 'extends' attribute to theme info
...
To create a derived (or child) theme, the array held in
`App::$theme_info` must contain a key `extends` that contains the name
of the parent theme as a value.
The derived theme tutorial would suggest adding the key in the
`themename_init()` function, however this does not work. The theme info
is repopulated from the theme info file after the theme init function
has run, and so the `extends` key disappears.
This patch adds `extends` as a first class attribute for themes, so that
it can be specified directly in the theme info in the top file comment
block. It also updates the derived theme tutorial to reflect this
change.
2025-07-20 20:23:25 +02:00
Mario
35be83c5f6
Merge branch 'fix-permission-context-help' into 'dev'
...
Fix context help link for permissions
See merge request hubzilla/core!2212
2025-07-13 19:39:21 +00:00
Harald Eilertsen
76eed3c06c
Fix context help link for permissions
...
The target was changed when the new docs was merged.
2025-07-13 16:09:33 +02:00
Mario
a55bba7aa8
fix blog mode if threaded view is disabled
2025-07-13 09:47:38 +00:00
Mario
9f99e401bc
Merge branch 'fix-markdown-mentions' into 'dev'
...
Prevent mentions from mangling by markdown parser
See merge request hubzilla/core!2211
2025-07-10 11:43:10 +00:00
Mario
8deedd1979
remove long deprecated crypto functions
2025-07-08 10:01:10 +00:00
Harald Eilertsen
cb491c53f7
Prevent mentions from mangling by markdown parser
...
Mentioning people whose handles include valid markdown would not survive
markdown to bbcode conversion wihout being mangled. An example that
brought this to my attention was a handle similar to this:
_someuser_@testsite.example
The underscores would be interpreted as emphasis in markdown, and
converted to:
[i]someuser[/i]@testsite.example
This patch should fix this, and hopefully any other issue with mentions
being mangled.
2025-06-28 13:35:05 +02:00
Mario
6028f0490e
minor refactor to get rid of the $webpage variable (it does not cut it anymore) and use $item_type instead
2025-06-26 08:08:08 +00:00
Mario Vavti
2aeed27b9b
emiting a notice from include/auth does not work. emit it from mod login if the login failed.
2025-06-25 17:33:35 +02:00
Mario Vavti
d636e71024
remove code that would never execute and make sure the first account to register is the admin account
2025-06-25 17:26:41 +02:00
Mario
0e31d61868
Merge branch 'some-account-cleanup' into 'dev'
...
A bit of cleanup for account functions
See merge request hubzilla/core!2210
2025-06-24 07:53:43 +00:00
Harald Eilertsen
66e02c5e3a
A bit of cleanup for account functions
2025-06-24 07:53:42 +00:00
Mario
9a410f57e6
fix php warnings
2025-06-24 07:25:56 +00:00
Mario
aeb54655a0
exit if we have not found anything
2025-06-23 09:24:10 +00:00
Mario
1a3ca49eba
apply downstream fix from streams: do not sign (request-target) on response
2025-06-23 09:10:57 +00:00
Mario
fcf42eeae0
Revert "rfc9421 verify: parse more fields if applicable"
...
This reverts commit 721c0b1e5b .
2025-06-23 09:02:08 +00:00