LaurentGH
f4416156a1
Improve the call to preg_split to process linefeeds as separators in tags
2025-11-14 19:39:08 +01:00
LaurentGH
e37115ccbe
When adding tags to an article process linefeeds like commas
...
When a user adds tags to an article, a textarea is used to retrieve the values. The form indicates that tags have to be separated by commas.
However, it is also convenient to separate them by linefeeds. A user can also enter a linefeed thinking it is a separator.
Keeping tags with new lines in the middle is not useful. So, split the string on commas and linefeeds.
2025-11-14 18:23:06 +01:00
supahgreg
5bec70065a
Assorted array-related (or nearby) tweaks.
...
Move away from 'array_push', simplify various things (e.g. eliminate low value intermediate vars), etc.
2025-11-01 23:47:00 +00:00
supahgreg
a8320ab9cf
Use first-class callable syntax.
...
Also tweak 'clean()' a bit in the process.
https://wiki.php.net/rfc/first_class_callable_syntax
2025-10-23 16:59:27 +00:00
supahgreg
0ba5de1daa
Make specific issues identifiable in 'Article#redirect()' error messages.
2025-10-22 12:33:44 -05:00
supahgreg
80702bb018
Fix a typing issue and remove several PHPStan ignores.
2025-10-18 23:49:37 +00:00
supahgreg
f9290ff37a
Rector rule 'ThisCallOnStaticMethodToStaticCallRector'.
...
https://getrector.com/rule-detail/this-call-on-static-method-to-static-call-rector
2025-10-18 01:48:51 +00:00
supahgreg
8480b14746
Rector rule 'LongArrayToShortArrayRector'.
...
https://getrector.com/rule-detail/long-array-to-short-array-rector
2025-10-18 01:24:59 +00:00
supahgreg
fbdf35d134
Rector rule 'ListToArrayDestructRector'.
...
https://getrector.com/rule-detail/list-to-array-destruct-rector
2025-10-18 01:20:32 +00:00
supahgreg
bd1e066402
Fix using 'strlen' with 'array_filter', remove PHPStan ignore.
2025-10-17 02:28:26 +00:00
wn_
9982871ac1
Filter more results by user ID.
2025-08-25 16:06:41 +00:00
Andrew Dolgov
e91c49b747
use RETURNING syntax when creating article record in share anything
2025-05-06 05:04:47 +03:00
Andrew Dolgov
3098dc0a16
rename article mark/publish hooks
2025-05-02 21:28:37 +03:00
Andrew Dolgov
0520ca2226
deal with published hook in _create_published_article
2025-05-02 08:26:52 +03:00
Andrew Dolgov
b154bc7a10
initial attempt to remove mysql-related stuff from tt-rss
2025-04-14 12:59:00 +03:00
wn_
667528d5b9
Use PHP 8 'str_' functions.
...
A few more characters in some places, but helps with readability.
2024-11-24 13:59:29 +00:00
wn_
abcd0e8ba2
Use native union types in most places.
2024-11-23 17:43:24 +00:00
wn_
154abc61a0
Eliminate use of deprecated 'get_pref()' and 'set_pref()'.
2024-11-18 21:59:45 +00:00
Andrew Dolgov
884fd92f13
drop opentelemetry
2024-10-01 16:00:34 +03:00
wn_
8727fb3ba8
Clean up some unused variables.
...
This is essentially 1ccc0c8c1a without the renames and some other things related to Psalm.
2024-01-08 22:46:13 +00:00
Andrew Dolgov
865ecc8796
move to psr-4 autoloader
2023-10-25 12:55:09 +03:00