Shish
845c8b3d85
[core] Make User::by_name / User::by_id not-null
...
Nearly everywhere that these functions are called, the result is assumed to be not-null, and a null will break things
2024-08-31 20:39:36 +01:00
Shish
8f8c0d151a
Update dependency versions
2024-08-31 17:06:39 +01:00
Shish
b9c7d632fd
[graphql] custom field resolver, fixes #1089
2024-02-25 19:32:05 +00:00
Shish
2be141327a
[graphql] fix graphql field access, fixes #1089
2024-02-25 16:54:13 +00:00
Shish
e80d235fe9
[core] use Safe library, reduce StdLibEx
2024-02-20 10:38:20 +00:00
Shish
4e362d816f
[core] named constant for nice urls
2024-02-14 12:35:58 +00:00
Shish
3d905b1055
[core] load null-strings as null, fixes #1023
2024-02-12 16:03:37 +00:00
Shish
62ece58403
[core] fix uglyurl thumbs
2024-02-11 21:37:00 +00:00
Shish
7a91833d22
[core] show known properties when one is missing
2024-02-11 18:36:47 +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
b60c3fe362
[core] a load more type hints, and fix bugs revealed by type hints
2024-01-20 14:11:00 +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
2410a64551
derp
2024-01-15 21:16:09 +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
6c6b09f762
[core] image->mime is not-nullable
2024-01-15 12:18:28 +00:00
Shish
4b8bc82ee4
[tag_edit] abort on error rather than only applying some tags
2024-01-11 10:28:41 +00:00
Shish
3c90597ca8
[core] inline some single-use functions
2024-01-09 04:22:59 +00:00
Shish
4c2d6d9ca4
[replace] split upload and replace completely, fixes #1001
2024-01-09 03:38:51 +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
fb49b785ef
[core] don't take shortcuts when going next/prev, as some extensions (eg ratings) might want to alter search results ( fixes #984 )
2023-12-31 18:48:49 +00:00
Shish
a5c6f1321b
refactor search a little and add much better testing
2023-12-14 17:04:16 +00:00
Shish
4c8274161f
fix more search edge-cases
2023-12-14 02:13:01 +00:00
Shish
fd1bb21f9d
bumps
2023-11-11 22:05:28 +00:00
Shish
aa8de9d420
the php string type is lowercase
2023-08-17 18:20:46 +01:00
Shish
8fb6fd5f54
stricter nulls
2023-06-27 17:45:35 +01:00
Shish
e62cdb0979
offset can't be null, and named args
2023-06-27 15:32:39 +01:00
Shish
2ebeb27bb6
avoid retagging unnecessarily?
2023-06-25 21:47:08 +00:00
Shish
33f32f7b22
Revert "INSERT ... RETURNING is well-supported now" - mysql doesn't...
...
This reverts commit 633d5c5348
.
2023-06-25 20:31:11 +00:00
Shish
948ed2724c
single query to insert new image tags
2023-06-25 20:26:51 +00:00
Shish
633d5c5348
INSERT ... RETURNING is well-supported now
2023-06-25 20:25:09 +00:00
Shish
32f2ab8eb6
optimise tag setting
2023-06-25 14:59:10 +00:00
Shish
ac29324184
simplify search a little
2023-05-25 12:59:25 +01:00
Shish
12f0bc3a81
Allow SearchTermParseEvent to have a bit more control over results
...
Rather than "add querylet or do nothing", moving more code into the
event means that event handlers are able to add a positive or negative
querylet, add a positive or negative tag, or do nothing
This means that events can respond to the `null` search term by adding a
tag, which would be useful for #917
2023-05-25 12:59:25 +01:00
Shish
64c98e4755
offset/limit for standard terminology in API
2023-03-08 22:26:49 +00:00
Shish
077a5e7727
fix php8.2 warnings
2023-02-19 11:24:33 +00:00
Shish
3896856c06
more fields
2023-02-14 01:02:58 +00:00
Shish
301a5d3027
updates
2023-02-13 22:28:50 +00:00
Shish
03cf09937b
fixes
2023-02-12 12:27:37 +00:00
Shish
7fbc19d7a9
expose more image fields
2023-02-07 13:18:00 +00:00
Shish
689b2b13af
send_event(T) -> T
2023-02-04 20:50:26 +00:00