Commit graph

267 commits

Author SHA1 Message Date
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
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
af309601f5 [upload] separate out DataUpload, ImageAddition, and TagSet/SourceSet/LockSet/etc 2024-01-05 15:00:07 +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
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
myname
85b1e54904 Refactoring auto-complete functionality for alias editor and auto tagger 2023-12-26 02:37:47 +00:00
Shish
2ac243d20d [core] use rawurlencode/decode consistently, deprecate caret system 2023-12-24 22:42:14 +00:00
Shish
7f98412d8b cache_get_or_set function 2023-12-14 22:02:10 +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
43c7be0e89 dedicated search_link() function for generating links to search results, see #936 2023-08-18 13:52:03 +01:00
Shish
aa8de9d420 the php string type is lowercase 2023-08-17 18:20:46 +01:00
Shish
0f162fe32a format 2023-06-28 13:09:02 +00: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
f9f37fc637 Tag::implode should sort case-insensitively 2023-06-25 21:56:02 +00:00
Shish
2ebeb27bb6 avoid retagging unnecessarily? 2023-06-25 21:47:08 +00:00
Shish
284b7313cc ... 2023-06-25 21:35:53 +00:00
Shish
6fb9b66e45 ffsphp 2023-06-25 21:30:43 +00:00
Shish
f9af363664 argh php 2023-06-25 20:47:55 +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
36951db563 use DataUploadEvent fields rather than required metadata 2023-02-24 22:42:03 +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
90dd842a7c TagUsage is not-null 2023-02-07 13:18:42 +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
Shish
8492ae9ea4 graphqlitism 2023-02-04 18:55:19 +00:00
Shish
6ca330dd8b hint 2023-02-04 18:19:04 +00:00
Shish
7c53989038 types 2023-02-04 14:15:47 +00:00
Shish
180f21e29e Use graphqlite-like API 2023-02-04 13:29:21 +00:00
Shish
fcfeed8413 fix l2 errors 2023-02-03 20:03:04 +00:00
Shish
54e2ca21ec phpstan 2023-02-03 16:44:16 +00:00
Shish
9721dc8050 format 2023-02-02 16:50:09 +00:00
Shish
708e102338 Have shimmie's global cache object implement PSR-16 2023-02-02 16:04:35 +00:00
Shish
e79470d974 experimental graphql api 2023-02-01 21:57:18 +00:00
Shish
f0ee76e7c7 format 2023-01-11 19:45:26 +00:00
Shish
9b6f40e06e updates 2023-01-11 18:39:46 +00:00
Shish
f91daba264 count less 2023-01-11 11:41:13 +00:00
Shish
5a64e8729b nits 2023-01-11 11:15:26 +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
a04bc2e7e4 php8.1 gogogo 2022-10-28 01:45:35 +01:00
Shish
caa3c80de4 Use Y-m-d H:i:s for default 'posted' date 2022-10-27 17:09:39 +01:00
Shish
a828c3e0e5 more thorough testing for path_to_tags, and handle more edge cases 2022-10-27 17:09:39 +01:00
Shish
22ec34ea52 format 2022-09-27 17:38:15 +01:00
myname
10e63a0666 Fixing bulk add bug, tag is set to "\" if no other tags are present 2022-09-27 02:12:24 -05:00
Shish
b859e1fc60
Merge pull request #869 from thoughever/reverse_proxy
X-Real-IP support and Varnish PURGE config options
2022-05-01 10:42:54 +01:00
Jessica Stokes
6bc1ec4f81 Allow setting $image->posted values 2022-04-29 11:21:57 -07:00
thoughever
f15407bc75 X-Real-IP support and Varnish PURGE config options
X-Real-IP for core functionality

Global config define REVERSE_PROXY_X_HEADERS

Config host and port for varnish PURGE

config option to specify PURGE protocol

exception in curl purge now shows error code

ipv6 x-real-ip addresses are now validated properly

X-Forwarded-Proto enabled by define
2022-01-20 22:25:22 +00:00
Shish
3d9e32e919 new php-cs-fixer 2021-12-14 18:32:47 +00:00
Shish
58db685b29 more error handling 2021-11-10 19:33:51 +00:00
Shish
d932178670 don't crash when the user searches with no positive tags and multiple non-existent negative tags 2021-10-06 17:02:29 +00:00
Shish
3f0a8399d1 clarify some nullables 2021-09-25 13:40:41 +01:00
Shish
faf35cc884 video references image width / height 2021-03-16 01:49:48 +00:00
Shish
77f7121e26 drop php7.3 support, make use of 7.4 features 2021-03-14 23:43:50 +00:00
Matthew Barbour
4f82dce662 Changed image->get_tag_array to sort the array before returning 2021-01-16 14:26:18 -06:00
Shish
ecafd4e131 Merge branch 'image2post' 2020-10-27 22:42:47 +00:00
Shish
338bbcdbcb more test passing 2020-10-27 22:19:26 +00:00
Shish
10f563ee37 boolinate locked 2020-10-27 01:05:12 +00:00
Shish
ee7a4f178c boolinate video/audio 2020-10-27 00:58:18 +00:00
Shish
ed735e17be boolinate image 2020-10-27 00:58:18 +00:00
Shish
aceb3e23f3 remove redundant casts 2020-10-26 23:18:14 +00:00
Shish
cc06df171a Argh, that doesn't work for OTHER versions of sqlite...
This reverts commit 55e3cb5d63.
2020-10-26 22:37:25 +00:00
Shish
55e3cb5d63 compatibility with out-of-date sqlite: use '(1=0)' instead of 'false' 2020-10-26 22:33:11 +00:00
Matthew Barbour
e7b109a7f2 Image to Post - Some core files 2020-10-26 10:53:02 -05:00
Shish
19a6b39c70 make use of str_starts_with / str_ends_with / str_contains 2020-10-25 19:31:58 +00:00
Shish
c783ff0e8d polyfills for php8's str_starts_with and str_ends_with 2020-10-25 19:15:13 +00:00
Shish
c8bd5e8d49 clarity for not-emptiness 2020-10-25 13:09:51 +00:00
Shish
0dca09c230 make order querylets a first class citizen instead of a hack 2020-10-25 12:55:36 +00:00
Shish
19d5cfe8b9 make search term parse ID a standard thing 2020-10-25 12:55:36 +00:00
Shish
c11f0dafd0 format 2020-10-24 22:16:18 +01:00
Shish
58a0f060ce avoid numeric columns 2020-10-24 19:18:40 +01:00
Shish
8ff70134ae nits 2020-10-24 13:46:57 +01:00
Matthew Barbour
bf2a34c106 Adjusted mime type update statement to include NULLs. Changed get_mime() so that it can return a null in the event of the mime type not being properly set. 2020-10-08 17:41:24 -05:00
Matthew Barbour
6bc8b791d2 Added option to go to next image when an image is deleted 2020-10-08 17:24:21 -05:00
Shish
a93c66515b
Merge pull request #749 from sanmadjack/video_transcode
Video transcoding
2020-09-16 13:46:18 +01:00
Shish
4131bcbd64
Merge pull request #748 from sanmadjack/image_info
Added image info option to admin, changed the info template parser to…
2020-09-16 11:21:31 +01:00
Shish
5d86314fc2
Merge pull request #746 from sanmadjack/resize_types
Added "Fit Blur Tall, Fill Wide" resize type
2020-09-16 11:20:28 +01:00
Matthew Barbour
ecd860ec6d Video transcoding extension, currently just supports changing the video container 2020-08-28 09:52:01 -05:00
Matthew Barbour
65aca09203 Added understanding of video codecs, primarily to allow us to determine whether a file is a webm or not, but also to support my forthcoming video transcoding extension 2020-08-28 09:51:55 -05:00
Matthew Barbour
4c5ef85906 Added image info option to admin, changed the info template parser to not use the url-escaped option 2020-08-28 09:50:36 -05:00
Matthew Barbour
2dedeb06e0 Added "Fit Blur Tall, Fill Wide" resize type 2020-08-28 09:49:24 -05:00
Matthew Barbour
ab008e351d Added SPEED_HAX criteria to image count shortcuts. 2020-08-28 09:48:10 -05:00
Shish
de26b7f373 don't die if database is missing a MIME type 2020-07-07 16:07:19 +00:00
Matthew Barbour
7f68ef1cfd Added option to transcode extension and thumbnailing to choose the color to use to fill in the background when converting an image with an alpha channel to a format without 2020-06-25 00:42:43 +01:00
Matthew Barbour
984c9702ec The great MIMEing 2020-06-25 00:42:34 +01:00
Matthew Barbour
b937ad6255 Added thumbnail scaling options
Changed ffmpeg thumbnailer to instead output a full-size png which is forwarded to the image thumbnailer, to allow it to take advantage of all available scaling options
2020-06-23 15:05:55 +01:00
Matthew Barbour
6d16c52367 New bulk import/export extension 2020-06-23 15:01:22 +01:00