Shish
8b20fa3bc2
Add preg_replace_ex
...
having preg_replace return string|array|null is a pain, string|exception is much cleaner
2024-08-31 19:56:27 +01:00
Shish
8f8c0d151a
Update dependency versions
2024-08-31 17:06:39 +01:00
discomrade
571839ec4a
[upload] build post fields using events
2024-03-29 09:27:50 +00:00
Shish
db0e788a67
[core] Deduplicate ImageAdditionEvent & ImageInfoSetEvent
...
Rather than ImageAddition triggering TagsSet/SourceSet/LockSet etc in one way, and ImageInfoSet triggering TagsSet/SourceSet/LockSet in a different way, why not have ImageAddition *just* deal with image addition, and then send a separate ImageInfoSet to deal with all of the metadata setting?
2024-02-20 22:15:24 +00:00
Shish
e80d235fe9
[core] use Safe library, reduce StdLibEx
2024-02-20 10:38:20 +00:00
Shish
c0bc11ee0c
Revert "[upload] add rating fields to upload form"
...
This reverts commit 32d5274880
.
2024-02-19 23:00:37 +00:00
discomrade
32d5274880
[upload] add rating fields to upload form
...
If the Post Ratings extension is enabled, encourage a rating to be selected when uploading.
This can be extended to also have a Common Ratings field, if wanted.
2024-02-19 17:23:06 +00:00
Shish
4e362d816f
[core] named constant for nice urls
2024-02-14 12:35:58 +00:00
Shish
8c22cb1fb6
[core] exact and named page args
2024-02-11 11:34:17 +00:00
Shish
cc9de6b4b2
[core] merge method-check and permission-check into page_matches()
2024-02-10 23:03:14 +00:00
Shish
7895978d93
fewer globals
2024-02-10 01:55:05 +00:00
Shish
77b755e68b
[core] reduce use of GET global
2024-02-09 16:36:57 +00:00
Shish
82a3ce25c2
level 7 typing
2024-01-20 23:27:34 +00:00
Shish
8b797a9a31
[tests] more strictness
2024-01-20 19:47:27 +00:00
Shish
b60c3fe362
[core] a load more type hints, and fix bugs revealed by type hints
2024-01-20 14:11:00 +00:00
Shish
373be4e05c
avoid stringy class names
2024-01-20 01:03:02 +00:00
Shish
641821f6f1
databases??
2024-01-15 22:56:06 +00:00
Shish
434455b836
[tests] more voiding of tests
2024-01-15 14:31:51 +00:00
Shish
802ff336a2
[core,tests] even more types
2024-01-15 14:08:11 +00:00
Shish
bb9ab613ce
[everything] bulk set event handler return types to void
2024-01-15 11:52:35 +00:00
Shish
7b9201cb42
[core] Database::with_savepoint()
2024-01-09 21:59:24 +00:00
Shish
b2f67363a1
[core] roll back database transaction when upload fails - fixes #1007
2024-01-09 21:01:10 +00:00
Shish
4c2d6d9ca4
[replace] split upload and replace completely, fixes #1001
2024-01-09 03:38:51 +00:00
Shish
a28fb66b91
[core] have ImageReplace replace image->file with a new file, not replace a whole Image object
2024-01-09 02:33:14 +00:00
Shish
8b18b73f94
fmt
2024-01-08 22:08:10 +00:00
Shish
e564646dd8
[upload] upload form is a form
2024-01-08 20:41:03 +00:00
Shish
8237a22029
-:
2024-01-08 20:12:45 +00:00
Shish
9d80b1470c
[upload] cleaner upload size counters
2024-01-08 19:38:23 +00:00
Shish
af309601f5
[upload] separate out DataUpload, ImageAddition, and TagSet/SourceSet/LockSet/etc
2024-01-05 15:00:07 +00:00
Shish
aa494efe45
[image_hash_ban] stop putting HTML into exception text, fixes #990
2024-01-05 13:12:44 +00:00
Shish
87368ac56a
[upload] fix empty-vs-null confusion, fixes #989
2024-01-05 04:19:42 +00:00
Shish
502d50c57d
[upload] keep original post date when replacing image, fixes #903
2024-01-04 14:29:09 +00:00
Shish
3acc3fa607
[css] remove more dead css, make more extension CSS be specific
2024-01-01 16:21:43 +00:00
Shish
c0d9946e71
[upload] go full OOP for upload results
2024-01-01 04:30:43 +00:00
Shish
9f002b6bf7
typed arrays
2024-01-01 03:30:21 +00:00
Shish
26bf4277e0
Separate out GET and POST more explicitly
...
- No longer allow uploading directly via GET, that is terrible for
security. Instead, use the GET parameters to pre-fill the upload form.
- PageRequestEvent has a `method` property that can be checked in
extensions
2024-01-01 03:30:21 +00:00
Shish
5356008985
remove unused images
2024-01-01 03:30:21 +00:00
Shish
e3fb67661e
nits
2024-01-01 03:30:21 +00:00
Shish
3462a81c28
[upload] give filesize-tracker script some polish
2024-01-01 03:30:21 +00:00
Shish
48557354fc
[upload] less jquery
2023-12-30 14:25:03 +00:00
Shish
7617daa15c
[autocomplete] rely on autocomplete-script to disable browser built-in where appropriate
2023-12-26 12:53:46 +00:00
Shish
d04ec4296b
[upload] saner error reporting
2023-12-26 12:50:37 +00:00
Shish
fd1bb21f9d
bumps
2023-11-11 22:05:28 +00:00
Shish
43c7be0e89
dedicated search_link() function for generating links to search results, see #936
2023-08-18 13:52:03 +01:00
Shish
8fb6fd5f54
stricter nulls
2023-06-27 17:45:35 +01:00
Shish
00d4f9f75c
always have a Themelet, never null
2023-06-27 16:11:14 +01:00
Shish
928c9d95d1
Blocks can accept HTMLElements directly
2023-06-27 11:59:39 +01:00
Shish
8ebd8bf287
format
2023-06-27 11:45:27 +01:00
Shish
38edf739fc
avoid treating html as strings
2023-06-27 11:44:46 +01:00
NottyNoz
56a60a9ec1
upload form update
2023-06-27 11:41:53 +01:00