Shish
8efa960e5d
Make some more things null-safe
...
(in preparation for bumping up the phpstan strictness to disallow null-unsafe code)
2024-08-31 19:19:24 +01:00
Shish
8f8c0d151a
Update dependency versions
2024-08-31 17:06:39 +01: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
7ee4152942
[core] organise exceptions a bit
2024-02-11 16:03:23 +00:00
Shish
5735320a95
[extensions] have extension categories, remove versions
2024-02-10 19:42:28 +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
589ff69eea
[types] typetypetypetypetype
2024-01-15 15:08:22 +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
81ec577b32
[core] only move file to warehouse if all the rest of the upload is ok, fixes #1004
2024-01-09 04:49:19 +00:00
Shish
3c90597ca8
[core] inline some single-use functions
2024-01-09 04:22:59 +00:00
Shish
03d4045117
[core] also simplify uploading by having merge handled as a special case
2024-01-09 04:07:32 +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
267e176658
[core] have extensions react to ImageAdditionEvent, instead of sending ImageAddition and other events in parallel
2024-01-09 01:32:34 +00:00
Shish
baf5f38a25
[core] only check image contents if the mime type is one we can handle
2024-01-09 01:05:33 +00:00
Shish
0762da54eb
[core] have ThumbnailGenerationEvent work on an Image
2024-01-09 01:03:46 +00:00
Shish
c494bf293d
[core] if image is created from a temp file, have get_image_filename() return that file
2024-01-09 00:17:54 +00:00
Shish
af309601f5
[upload] separate out DataUpload, ImageAddition, and TagSet/SourceSet/LockSet/etc
2024-01-05 15:00:07 +00:00
Shish
502d50c57d
[upload] keep original post date when replacing image, fixes #903
2024-01-04 14:29:09 +00:00
Shish
aea533b345
[file handlers] separate out display_image and display_metadata
2024-01-01 20:21:51 +00:00
Shish
a5c6f1321b
refactor search a little and add much better testing
2023-12-14 17:04:16 +00:00
Shish
fd1bb21f9d
bumps
2023-11-11 22:05:28 +00:00
Shish
00d4f9f75c
always have a Themelet, never null
2023-06-27 16:11:14 +01:00
Shish
36951db563
use DataUploadEvent fields rather than required metadata
2023-02-24 22:42:03 +00:00
Shish
fcfeed8413
fix l2 errors
2023-02-03 20:03:04 +00:00
Shish
ff71a89948
fixes
2023-02-03 16:58:16 +00:00
Shish
54e2ca21ec
phpstan
2023-02-03 16:44:16 +00:00
Shish
bce2d55744
Namespaces are one honking great idea—let's do more of those!
2023-01-10 22:44:09 +00:00
Shish
d2f5796c22
format
2022-10-28 01:46:48 +01:00
Shish
a04bc2e7e4
php8.1 gogogo
2022-10-28 01:45:35 +01:00
Shish
3d9e32e919
new php-cs-fixer
2021-12-14 18:32:47 +00:00
Shish
77f7121e26
drop php7.3 support, make use of 7.4 features
2021-03-14 23:43:50 +00:00
Shish
ecafd4e131
Merge branch 'image2post'
2020-10-27 22:42:47 +00:00
Shish
b6151ce714
???
2020-10-27 01:55:48 +00:00
Shish
754f0b2f39
strpos
2020-10-27 01:41:07 +00:00
Matthew Barbour
e7b109a7f2
Image to Post - Some core files
2020-10-26 10:53:02 -05:00
Shish
8ad783ff4c
be more snake_case
2020-10-26 00:27:06 +00:00
Shish
19a6b39c70
make use of str_starts_with / str_ends_with / str_contains
2020-10-25 19:31:58 +00:00
Shish
8ff70134ae
nits
2020-10-24 13:46:57 +01:00
Matthew Barbour
79a2fe23b3
Added support for specifying conflicting extensions
2020-10-08 17:24:14 -05:00
Matthew Barbour
984c9702ec
The great MIMEing
2020-06-25 00:42:34 +01:00
Matthew Barbour
5446f29141
improved filetype error handling
2020-06-03 20:01:08 +01:00
Matthew Barbour
63b2601e67
Mime type handling overhaul
...
Changed mime type map to deal with the reality that certain file types have multiple extensions and/or multiple mime types, as well as constants supporting all of the data. Created new functions using the updated mime type map to resolve mime types and extensions. Updated various items around the project that determine mime/extension to take advantage of the new functions.
2020-06-03 19:47:40 +01:00
Shish
72645af9a4
refactor a bunch of weirdness in image replacement
2020-04-25 21:38:11 +01:00
Shish
03806d0420
https a bunch of things
2020-03-25 11:47:00 +00:00