Commit graph

1842 commits

Author SHA1 Message Date
Shish
0890de35c1 [core] don't crash if TRUSTED_PROXIES isn't defined, fixes #1061 2024-02-21 14:59:19 +00:00
Shish
b407bad7c5 [core] give admin all permissions 2024-02-21 12:55:39 +00:00
discomrade
aff227ac31 [core] fix permissions in forum and notes
This includes preventing silent failures when permission is denied, preventing unauthorized users from being shown the note edit form, patching typos, and extracting NOTES_REQUEST to its own permission
2024-02-21 11:27:19 +00:00
discomrade
ac86cb1302 [core] rename FORUM_CREATE permission
This permission is for more than creating threads, making the previous name misleading
2024-02-21 11:27:19 +00:00
Noz
100d86dfbd fix installer
form POSTs to the wrong location if the booru is in a sub directory
2024-02-21 10:15:18 +00:00
Noz
343a858898 fix static file paths 2024-02-21 10:15:18 +00: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
2136be80ab [core] test truncate() properly, and then fix it, and then use it 2024-02-20 15:04:38 +00:00
Shish
e80d235fe9 [core] use Safe library, reduce StdLibEx 2024-02-20 10:38:20 +00:00
Shish
06db4a12e0 [core] test for order=random_1234 2024-02-17 12:38:16 +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
260d38c7f8 fix version 2024-02-16 11:20:51 +00:00
Shish
4e362d816f [core] named constant for nice urls 2024-02-14 12:35:58 +00:00
Shish
937cef38db [db] show original client IP in postgres status 2024-02-14 07:28:56 +00:00
Shish
ebeb3b6c60 [core] don't specify ORDER BY when counting total number of results, which allows the DB to be much faster 2024-02-13 17:46:16 +00:00
Shish
28a3aad887 [core] stop logging curl debug info to stdout 2024-02-13 01:05:35 +00:00
Shish
3d905b1055 [core] load null-strings as null, fixes #1023 2024-02-12 16:03:37 +00:00
Shish
9998b3501d bump 2024-02-12 11:16:28 +00:00
Shish
f9d06d5e7e [core] fix nicedebug 2024-02-11 23:30:39 +00:00
Shish
62ece58403 [core] fix uglyurl thumbs 2024-02-11 21:37:00 +00:00
Shish
3843930874 [core] guess at query encoding, hackily fixes #1026 2024-02-11 20:04:37 +00:00
Shish
7a91833d22 [core] show known properties when one is missing 2024-02-11 18:36:47 +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
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
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
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
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
fbacafdb4f type 2024-02-09 15:10:36 +00:00
Shish
12335b680e log query source uri even with niceurls 2024-02-09 15:10:29 +00:00
Shish
9ba9bf0fdf fix tests 2024-02-09 14:54:37 +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
57675e4f24 unbump 2024-02-09 11:04:04 +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
4501763540 test encoding 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
443ba12002 test encoding 2024-02-09 10:50:07 +00:00
Shish
91715fc937 Merge branch 'branch-2.10' 2024-02-08 00:50:47 +00:00
Shish
fed8e43e36 fmt 2024-02-08 00:50:41 +00:00
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