Commit graph

1794 commits

Author SHA1 Message Date
Shish
4974359846 Merge branch 'branch-2.10' 2024-02-08 00:41:56 +00:00
Shish
1edb7b6126 more tests 2024-02-07 23:22:24 +00:00
Shish
e0d9a20f4c cleanup 2024-02-07 23:01:45 +00:00
Shish
7adb7348d7 [core] fixes and tests for get_base_href + get_query, see #1024 2024-02-07 22:47:13 +00:00
Shish
e9c8e852a5 [core] attempt to figure out base href from SCRIPT_FILENAME + DOCUMENT_ROOT, see #1024 2024-02-07 18:28:42 +00:00
Shish
c64c796398 [core] fix --user CLI flag, fixes #1022 2024-02-06 10:31:47 +00:00
Shish
4cd0419b03 bump 2024-02-05 23:04:13 +00:00
Shish
6f165a974a fmt 2024-02-05 13:41:32 +00:00
Shish
92577d355f [core] add custom error messages for stdlib_ex, and a test 2024-02-05 13:25:18 +00:00
Shish
0588f9af3e bump 2024-02-04 00:43:47 +00:00
Shish
e753a68e76 Merge branch 'branch-2.10' 2024-02-04 00:25:57 +00:00
Shish
e5828b0810 base_href as a data attr 2024-01-28 21:24:21 +00:00
Shish
cbd073e681 bump 2024-01-28 13:03:07 +00:00
Shish
a7c50a0b95 Merge branch 'branch-2.10' 2024-01-21 10:59:33 +00:00
Shish
f0457b4f94 [core] image_id should never be null, only uninitialised 2024-01-20 23:54:26 +00:00
Shish
bc933bbbca [core] set image->posted on posting 2024-01-20 23:32:38 +00:00
Shish
82a3ce25c2 level 7 typing 2024-01-20 23:27:34 +00:00
Shish
05199c13cc [core] kill a secret global 2024-01-20 19:52:18 +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
bf649b012a fmt 2024-01-19 18:37:15 +00:00
Shish
448e270da8 more typing 2024-01-19 18:33:32 +00:00
Shish
5455adf88a more typing 2024-01-19 18:24:52 +00:00
Shish
cb81f6b94a wtf php, array_filter() will return an array with gaps in it... 2024-01-19 18:06:38 +00:00
Shish
6bde7457e7 wtf php, array_filter() will return an array with gaps in it... 2024-01-19 18:01:50 +00:00
Shish
376b2c6ac6 [tag_list] make logarithms consistent across databases 2024-01-18 15:31:10 +00:00
Shish
21e159c76a [tag_list] make logarithms consistent across databases 2024-01-18 15:21:10 +00:00
Shish
d88f6883f2 [core] bump dev version 2024-01-18 15:20:09 +00:00
Shish
6020c15e30 A release o.o;; 2024-01-17 22:57:47 +00:00
Shish
e859064fca [core] environment settings didn't work as well as I'd hoped 2024-01-17 21:39:30 +00:00
Shish
bf9b47510a derp 2024-01-17 20:26:14 +00:00
Shish
fc6bb2d1b5 [core] allow sys-config settings to come from the environment 2024-01-17 20:19:13 +00:00
Shish
8fe54794d8 [core] consider a dynamic prop to exist if it is defined, even without a value 2024-01-16 17:35:14 +00:00
Shish
7f20b17a59 [cli] don't exit until after we have committed or rolled back the db 2024-01-16 01:28:44 +00:00
Shish
e58c071a14 exit non-zero if CLI install is missing input 2024-01-15 23:42:36 +00:00
Shish
e507105212 comments 2024-01-15 23:04:19 +00:00
Shish
5d120cd0c8 [tests] put tests inside transactions 2024-01-15 22:50:43 +00:00
Shish
de022564b3 make sure every test happens inside a transaction 2024-01-15 22:32:25 +00:00
Shish
e960f73fb6 fmt 2024-01-15 21:49:16 +00:00
Shish
031ccce961 nicer CLI install 2024-01-15 21:48:15 +00:00
Shish
2410a64551 derp 2024-01-15 21:16:09 +00:00
Shish
ed5960a301 type fix 2024-01-15 21:09:35 +00:00
Shish
d75b410075 [core] fix more warnings 2024-01-15 21:01:22 +00:00
Shish
c1bc63e86b boo(l) 2024-01-15 18:54:46 +00:00
Shish
b872c021e1 [core] insert or update image in a single statement 2024-01-15 18:52:07 +00:00
Shish
107485d991 [core] width and height are non-null 2024-01-15 18:52:07 +00:00
Shish
2f05ef4a0b [core] cleanup 2024-01-15 18:52:07 +00:00
Shish
2a494504f3 [core] all image columns should be statically or dynamically defined - nothing undefined 2024-01-15 18:52:07 +00:00
Shish
fb034af699 [core] int_props + bool_props -> prop_types 2024-01-15 18:52:07 +00:00
Shish
bbea373c19 [core] use ArrayAccess rather than dynamic props for extra columns on the images table 2024-01-15 18:52:07 +00:00
Shish
589ff69eea [types] typetypetypetypetype 2024-01-15 15:08:22 +00:00
Shish
434455b836 [tests] more voiding of tests 2024-01-15 14:31:51 +00:00
Shish
a1f22ef67c [themes] void return type for display_* functions 2024-01-15 14:23:12 +00:00
Shish
8a895113f3 [core] typed cookie object 2024-01-15 14:08:13 +00:00
Shish
7b7ec9c83f [tests] phpstan version bump 2024-01-15 14:08:12 +00:00
Shish
802ff336a2 [core,tests] even more types 2024-01-15 14:08:11 +00:00
Shish
6c6b09f762 [core] image->mime is not-nullable 2024-01-15 12:18:28 +00:00
Shish
646f95f91a [core] bump microcrud version, add types 2024-01-15 12:14:41 +00:00
Shish
bb9ab613ce [everything] bulk set event handler return types to void 2024-01-15 11:52:35 +00:00
Shish
4b8bc82ee4 [tag_edit] abort on error rather than only applying some tags 2024-01-11 10:28:41 +00:00
Shish
acd3abcc77 [core] fix error in error handling 2024-01-11 10:19:38 +00:00
Shish
ec35cace6a [core] replace quarter-arsed CLI interface with Symfony Console 2024-01-11 01:01:39 +00:00
Shish
39bfde6dff [tests] clear() at the end of each class, not the end of each test 2024-01-10 09:04:39 +00:00
Shish
432be420fd [core] trace savepoints 2024-01-09 22:47:22 +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
4d011fa5e5 [core] remove add_image, send_event(DataUpload) is much clearer as to what it's actually doing 2024-01-09 19:24:56 +00:00
Shish
edb8ec33fa more consistency for 'old' and 'new' terminology 2024-01-09 15:27:02 +00:00
Shish
cafef06b14 [core] avoid making convert show an error message 2024-01-09 15:26:45 +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
7146d07f4e [style] use CSS for text-wrapping 2024-01-08 21:24:41 +00:00
Shish
29fde1388a [core] only show decimal for KB/MB/etc less than 10 2024-01-08 19:35:25 +00:00
Shish
63b479592a [core] parse CACHE_DSN using parse_url, and support username / password for redis, fixes #1000 2024-01-07 23:28:15 +00:00
Shish
15582c5138 [core] default cache TTL to null rather than zero, fixes #997 2024-01-07 18:47:32 +00:00
Shish
051d6242ed [tests] add assertException because PHPUnit doesn't have it 2024-01-07 17:22:16 +00:00
Shish
77e88f6f54 [ratings/search] remove implicit 'rating:*' from image counting process, hopefully fixes #991 2024-01-07 04:17:22 +00:00
Shish
6a2d3f49e2 typed return arrays too 2024-01-06 21:34:30 +00:00
Shish
e57264fd95 [ci] more specific version in /system_info, less specific version in footer 2024-01-06 19:32:33 +00:00
Shish
f47c7d7ee8 [core] version alpha to beta 2024-01-05 15:35:29 +00:00
Shish
26630a4e3b fmt 2024-01-05 15:32:07 +00:00
Shish
d4b86b0e95 [core] redo deltree to also delete dotfiles, fixes #972 2024-01-05 15:30:32 +00:00
Shish
af309601f5 [upload] separate out DataUpload, ImageAddition, and TagSet/SourceSet/LockSet/etc 2024-01-05 15:00:07 +00:00
Shish
48b3de3c6e [core] fix error in error handling 2024-01-04 23:10:31 +00:00
Shish
7673b394f4 [search] get_images function to get specific images in specific order with search visibility (ratings etc) taken into account 2024-01-04 16:55:39 +00:00
Shish
ff04083ad5 [handle_archive] merge tags from inside the archive and the form, fixes #483 2024-01-04 15:55:48 +00:00
Shish
e49fcfa0c7 [core] allow ip_in_range to match exact IPs 2024-01-04 15:07:07 +00:00
Shish
c5395df243 [core] trust x-forwarded-for from trusted proxies, see #800 2024-01-04 14:50:36 +00:00
Shish
502d50c57d [upload] keep original post date when replacing image, fixes #903 2024-01-04 14:29:09 +00:00
Shish
74fd48a0f2 [theme] add data-userclass to body tag 2024-01-04 14:11:20 +00:00
Shish
ef3492e9b5 [theme] add data-rating attribute to thumbnails 2024-01-04 14:11:20 +00:00
Shish
55d5dc0a35 [themes] have themes implement head_html/body_html rather than render 2024-01-04 14:11:20 +00:00