Commit graph

3341 commits

Author SHA1 Message Date
Shish
2f2985f3eb [et] add commit info to versions.shimmie where people are more likely to copy-paste it 2024-02-19 13:10:10 +00:00
Marcos Del Sol Vives
08b01502a5 Do not cast hard drive size to integer - fixes #1037 2024-02-17 12:32:47 +00:00
Marcos Del Sol Vives
b3eb5e7b03 Fix order:random not working on SQlite 2024-02-16 20:14:34 +00:00
Shish
5c4b7c1284 [post_tags] avoid DB call if not needed 2024-02-16 16:41:00 +00:00
Joe
2cc53a958e apply review suggestions 2024-02-16 00:04:07 +00:00
Joe
0f620da854 make block IDs unique 2024-02-16 00:04:07 +00:00
Joe
5e0c6dd427 add togglable thumbnails for post relationships 2024-02-16 00:04:07 +00:00
Shish
f033efd456 [replace] if replace gets a POST with no replacement, show the ask-for-a-replacement page, see #1034 2024-02-14 12:45:25 +00:00
Shish
4e362d816f [core] named constant for nice urls 2024-02-14 12:35:58 +00:00
Shish
9c4e306b58 [tag_edit] separate responsibility for tags, source, owner, and lock 2024-02-12 22:08:47 +00:00
Shish
bd2ca06659 [autocomplete] support aliases 2024-02-12 13:48:06 +00:00
Shish
331a724b6e [autocomplete] don't try to complete a minus by itself, see #1028 2024-02-12 13:25:06 +00:00
Shish
f3772236f9 [pools] remove dead code 2024-02-12 11:32:28 +00:00
Shish
b06cf0b1da [core] don't make_link(make_link(path)), fixes #1029 2024-02-12 11:19:24 +00:00
Shish
263c455457 more consistent use of q parameter 2024-02-12 11:12:50 +00:00
Shish
f9d06d5e7e [core] fix nicedebug 2024-02-11 23:30:39 +00:00
Shish
60a6e92231 [log_console] silence error if we can't open the tty 2024-02-11 21:27:38 +00:00
Shish
b28c3bb638 [pools] derp 2024-02-11 19:01:42 +00:00
Shish
71b98a8e8c [pools] make urls more useful 2024-02-11 18:53:31 +00:00
Shish
a62994ed3c [pools] fix order page rendering 2024-02-11 18:37:12 +00:00
Shish
ed923fd80a [pools] make sure image lists have the css class shm-image-list, fixes #1027 2024-02-11 18:37:12 +00:00
Shish
4b8a6c6c43 [autocomplete] complete negative searches, fixes #1028 2024-02-11 16:40:44 +00:00
Shish
7ee4152942 [core] organise exceptions a bit 2024-02-11 16:03:23 +00:00
Shish
278286da9f more tests 2024-02-11 14:51:55 +00:00
Shish
72474b18dc [tips] remove old link 2024-02-11 11:42:49 +00:00
Shish
8c22cb1fb6 [core] exact and named page args 2024-02-11 11:34:17 +00:00
Shish
78aaff5c8f [misc] permission updates 2024-02-10 23:32:50 +00:00
Shish
79087c51a5 [update] remove extension - unzipping new code over the top of old code is fundamentally unsafe 2024-02-10 23:15:08 +00:00
Shish
cc9de6b4b2 [core] merge method-check and permission-check into page_matches() 2024-02-10 23:03:14 +00:00
Shish
5735320a95 [extensions] have extension categories, remove versions 2024-02-10 19:42:28 +00:00
Shish
81a8587543 ImageAction->add_button + display_crud 2024-02-10 18:35:55 +00:00
Shish
7da79fe2a9 [home] search is get again 2024-02-10 16:45:41 +00:00
Shish
20a87576b9 [wiki] cleanups and security 2024-02-10 16:40:38 +00:00
Shish
7895978d93 fewer globals 2024-02-10 01:55:05 +00:00
Shish
f911d9aae7 fixes 2024-02-10 00:46:35 +00:00
Shish
cbc574db90 [core] reduce use of POST global 2024-02-10 00:23:53 +00:00
Shish
c084016b5b [setup] have ConfigSaveEvent carry its own params 2024-02-10 00:23:52 +00:00
Shish
31dc7f1ee0 [bulk] have BulkActionEvent carry its own params 2024-02-10 00:05:33 +00:00
Shish
6d1bf8eede [admin] have AdminActionEvent carry its own params 2024-02-10 00:00:49 +00:00
Shish
f95e59cbae [image info] have ImageInfoSetEvent carry its own params 2024-02-10 00:00:49 +00:00
Shish
09774416c3 fix tests 2024-02-10 00:00:02 +00:00
Shish
77b755e68b [core] reduce use of GET global 2024-02-09 16:36:57 +00:00
Shish
e9e2a01aa3 Merge branch 'branch-2.10' 2024-02-09 16:35:00 +00:00
Shish
9ba9bf0fdf fix tests 2024-02-09 14:54:37 +00:00
Shish
eebb4c53e6 [link_scan] be get/post agnostic 2024-02-09 14:46:50 +00:00
Shish
062b6d3f4a Back out "use POST when building search results, see #1026"
Original commit changeset: c44822ec47
2024-02-09 14:41:23 +00:00
Shish
43e8ff3e3e more tests 2024-02-09 14:41:20 +00:00
Shish
2e536e980c [link_scan] apply to POST 2024-02-09 11:13:40 +00:00
Shish
5f335a54c9 [link_scan] apply to POST 2024-02-09 11:13:24 +00:00
Shish
e3eeb848b7 Merge branch 'master' into branch-2.10 2024-02-09 11:01:44 +00:00
Shish
a9e4c4bdb3 use POST when building search results, see #1026 2024-02-09 11:00:18 +00:00
Shish
c44822ec47 use POST when building search results, see #1026 2024-02-09 10:50:07 +00:00
Shish
4974359846 Merge branch 'branch-2.10' 2024-02-08 00:41:56 +00:00
Shish
c6e65a21f9 [setup] more specific niceurl test 2024-02-07 22:27:47 +00:00
Shish
9f9ee49e02 [setup] make niceurl testing more accurate, see #1024 2024-02-07 20:44:39 +00:00
Shish
db902d6d26 [r34] remove custom parts 2024-02-06 20:53:55 +00:00
Shish
5059520935 a little clarity 2024-02-05 23:16:31 +00:00
Shish
88530f5f67 [ext manager] interpret 'off' as 'turn off extension' 2024-02-05 23:01:22 +00:00
Shish
5d9090cd52 [comment] handle people posting junk 2024-02-05 13:27:40 +00:00
Shish
c71fce0628 home page lacks base-href 2024-02-04 00:33:40 +00:00
Shish
51afc014a2 home page lacks base-href 2024-02-04 00:33:22 +00:00
Shish
74889c4c94 [autocomplete] allow enter to do the default thing 2024-02-04 00:24:34 +00:00
Shish
e5828b0810 base_href as a data attr 2024-01-28 21:24:21 +00:00
Shish
b542b87f91 [image] we might be generating a link to an image which has not yet been posted 2024-01-22 22:37:47 +00:00
Shish
cd79e4879d [autocomplete] check for completions with and without colons, fixes #1018 2024-01-21 10:51:43 +00:00
Shish
37ceebdabd [autocomplete] more tests 2024-01-21 10:41:25 +00:00
Shish
82a3ce25c2 level 7 typing 2024-01-20 23:27:34 +00:00
Shish
8bd00f60c1 [core] kill another secret global 2024-01-20 19:57:26 +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
12ca708be8 submit form when enter is pressed in an autocomplete text area 2024-01-19 19:11:18 +00:00
Shish
46d11a0be5 smaller gap between image controls 2024-01-19 19:07:03 +00:00
Shish
dbb8bb8280 have image admin controls block use microhtml consistently 2024-01-19 18:57:02 +00:00
Shish
2d6a318a3b type fix 2024-01-19 18:38:18 +00:00
Shish
448e270da8 more typing 2024-01-19 18:33:32 +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
2a561392d0 [sitemap] add tests, and big rewrite to pass tests, fixes #1016 2024-01-18 19:47:48 +00:00
Shish
cc9cd396ad [r34] remove dead code 2024-01-18 15:56:14 +00:00
Shish
deb7c2adec [bulk actions] remove timeout before doing bulk actions 2024-01-18 15:31:11 +00:00
Shish
376b2c6ac6 [tag_list] make logarithms consistent across databases 2024-01-18 15:31:10 +00:00
Shish
b60646e98d [tag_list] ln(x) is 10x faster than log(2.7, x) 2024-01-18 15:31:10 +00:00
Shish
9ddd43d720 [bulk_add_csv] add each image in a transaction, fixes #1015 2024-01-17 22:54:43 +00:00
Shish
2667d635ad [bulk_add_csv] better docs, see #1015 2024-01-17 22:42:52 +00:00
Shish
d8a7ccd894 [tag_edit] only add https:// if there is no protocol, see #1015 2024-01-17 22:42:32 +00:00
Shish
50e0d74ee8 [link scan] there is no theme 2024-01-17 22:41:55 +00:00
Shish
d999198fb6 remove dead bit 2024-01-16 17:03:39 +00:00
Shish
6a0c5c4e2d more docs 2024-01-16 13:29:29 +00:00
Shish
04471a2875 [link scan] handle missing posts 2024-01-16 12:47:42 +00:00
Shish
a59dddd98f fmt 2024-01-16 12:16:18 +00:00
Shish
b1940ca919 [link scan] intercept search box inputs 2024-01-16 12:08:03 +00:00
Shish
5a9e6f2638 fmt 2024-01-16 11:05:10 +00:00
Shish
8e5c64e834 [link scan] new ext 2024-01-16 10:56:53 +00:00
Shish
ea1867f92d die louder if CSRF is missing for admin actions 2024-01-16 10:55:03 +00:00
Shish
83f3ae99eb [s3] allow CLI sync to limit number of itesm 2024-01-16 01:25:48 +00:00
Shish
30c564d317 [s3] allow sync'ing more posts in one go 2024-01-16 00:44:17 +00:00
Shish
5cc1a6febe [s3] button for manual sync, fixes #998 2024-01-16 00:35:17 +00:00
Shish
22cf7914a6 [pools] add lastupdated column if needed, fixes #1013 2024-01-15 23:23:33 +00:00
Shish
641821f6f1 databases?? 2024-01-15 22:56:06 +00:00
Shish
5d120cd0c8 [tests] put tests inside transactions 2024-01-15 22:50:43 +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
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
4e789040a0 [core] don't pass strings to functions that want ints 2024-01-15 14:21:33 +00:00
Shish
7b7ec9c83f [tests] phpstan version bump 2024-01-15 14:08:12 +00:00
Shish
8439e696dc [wiki] remove old and broken wiki page diffing 2024-01-15 14:08:12 +00:00
Shish
802ff336a2 [core,tests] even more types 2024-01-15 14:08:11 +00:00
Shish
2688843d80 more types 2024-01-15 13:08:59 +00:00
Shish
955d787fa3 [reverse search links] remove dead code 2024-01-15 12:24:49 +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
985d34aedd [resize] specifically be int, not float 2024-01-15 11:51:58 +00:00
Shish
013ae41f89 [tag_categories] fix return type for page_update(), fixes #918 2024-01-15 10:21:30 +00:00
Shish
1b6d8540a5 [autocomplete] don't show tags with 0 uses, see #1012 2024-01-14 16:45:09 +00:00
Shish
2af4a83fd1 [view] give input box a little extra buffer height to account for padding, fixes #1009 2024-01-13 13:28:19 +00:00
Shish
11a0ba27e9 [js] have shm_log specifically use a section, like the server-side functions 2024-01-13 13:25:58 +00:00
Shish
8308a21cb1 [nav_timing] client-side timing as an extension 2024-01-12 12:37:33 +00:00
Shish
4b8bc82ee4 [tag_edit] abort on error rather than only applying some tags 2024-01-11 10:28:41 +00:00
Shish
36388aa7a1 schema-dump doesn't need any args 2024-01-11 01:03:19 +00:00
Shish
ec35cace6a [core] replace quarter-arsed CLI interface with Symfony Console 2024-01-11 01:01:39 +00:00
Shish
69e9201cc6 [s3] no need for static 2024-01-10 18:41:06 +00:00
Shish
2c77a4e6a1 [tag_edit] mass edit CLI 2024-01-10 18:01:16 +00:00
Shish
219096d10b show queue length 2024-01-10 17:25:02 +00:00
Shish
e754ec89a7 [tests] cleaner teardown 2024-01-10 08:51:56 +00:00
Shish
7e7e9ec049 [rating] teardown tests properly 2024-01-09 22:47:10 +00:00
Shish
28a9724ffa fmt 2024-01-09 22:13:56 +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
c16aeca4d8 [handle_pixel] don't fail silently when imagemagick fails - see #1006 2024-01-09 17:59:41 +00:00
Shish
d986d0d378 [view] tag entry should grow as-needed, but not shrink - fixes #1005 2024-01-09 17:38:55 +00:00
Shish
e95c47c547 [s3] when there are many actions in a single page request, queue them instead of timing out 2024-01-09 17:23:34 +00:00
Shish
edb8ec33fa more consistency for 'old' and 'new' terminology 2024-01-09 15:27:02 +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
0762da54eb [core] have ThumbnailGenerationEvent work on an Image 2024-01-09 01:03:46 +00:00
Shish
01261b0fa6 [regen_thumb] use common image search function 2024-01-09 00:40:37 +00:00
Shish
14646e2bb9 [regen_thumb] use common deltree function 2024-01-09 00:37:02 +00:00
Shish
6c2c04c602 [r34] remove dead code 2024-01-09 00:34:32 +00:00
Shish
8b18b73f94 fmt 2024-01-08 22:08:10 +00:00
Shish
70882b46fd don't put white-on-yellow 2024-01-08 22:08:06 +00:00
Shish
93ce51e189 [styles] have input font-size be equal to text font-size, see #999 2024-01-08 21:33:16 +00:00
Shish
5a05f58792 [style] sortable is no longer a thing 2024-01-08 21:16:45 +00:00