Commit graph

6360 commits

Author SHA1 Message Date
Shish
4cc9b2f5d3 [core] don't crash when REMOTE_ADDR is 'unix:', fixes #1076 2024-02-22 23:18:38 +00:00
discomrade
c5fc001dbd [home] wrap nav links to prevent overflow 2024-02-22 12:24:44 +00:00
Shish
ae92e42300 [core] Utils tests 2024-02-21 23:51:10 +00:00
Shish
dd6c47484d [core] UserClass tests 2024-02-21 23:38:52 +00:00
Shish
00b96c313f [setup] don't crash if multichoice isn't set 2024-02-21 23:38:44 +00:00
Shish
8100ab31a9 [handle_archive] standard tmpdir 2024-02-21 22:35:27 +00:00
Shish
cff1bbad7d [various] split Index::onSearchTermParse into relevant extensions 2024-02-21 22:35:06 +00:00
Shish
d3352f1563 [devcontainer] seed shell history 2024-02-21 22:34:57 +00:00
Shish
555d82b590 [ci] run tests in dev mode, with assertions 2024-02-21 22:34:47 +00:00
Shish
535a6f30c1 [devcontainer] fix user creation 2024-02-21 19:42:44 +00:00
Shish
7bc8459cda [docker] generate web server config with our own script (envsubst is terrible) 2024-02-21 19:27:20 +00:00
Shish
0a617f6292 [docker] only replace specific variables, fixes #1064 2024-02-21 18:13:47 +00:00
Shish
0890de35c1 [core] don't crash if TRUSTED_PROXIES isn't defined, fixes #1061 2024-02-21 14:59:19 +00:00
discomrade
fa5f6b8179 [home] style counter images to adjust to screen width 2024-02-21 14:54:34 +00:00
Shish
2e8d5dbc49 [ci] remove scrutinizer - too many false positives compared to phpstan... 2024-02-21 14:54:03 +00:00
Shish
a77c31b2cb [docker] accept MAX_FILE_UPLOADS as a docker environment variable 2024-02-21 12:58:24 +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
3f064c3336 [handle_pixel] better zoom logic 2024-02-21 10:15:18 +00:00
Noz
3b5976c334 [handle_pixel] change post view defaults 2024-02-21 10:15:18 +00:00
Noz
93944fc883 [user] change email required default 2024-02-21 10:15:18 +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
discomrade
50fe355046 add wildcard search examples 2024-02-20 15:05:13 +00:00
Shish
2136be80ab [core] test truncate() properly, and then fix it, and then use it 2024-02-20 15:04:38 +00:00
discomrade
a21f6ebf6b [notes] allow clicking through notes container
If the notes extension is enabled, the container would block clicking the image, including right-clicking to save it
2024-02-20 10:41:31 +00:00
discomrade
d451f164a3 [comment] fix unnecessary truncate when trimming
Also makes trimming consistent across themes
2024-02-20 10:40:32 +00:00
Shish
e80d235fe9 [core] use Safe library, reduce StdLibEx 2024-02-20 10:38:20 +00:00
Shish
c0bc11ee0c Revert "[upload] add rating fields to upload form"
This reverts commit 32d5274880.
2024-02-19 23:00:37 +00:00
Shish
ffb0d405b4 [comment] fix comment deletion in other themes too 2024-02-19 22:29:45 +00:00
discomrade
32d5274880 [upload] add rating fields to upload form
If the Post Ratings extension is enabled, encourage a rating to be selected when uploading.

This can be extended to also have a Common Ratings field, if wanted.
2024-02-19 17:23:06 +00:00
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
Shish
06db4a12e0 [core] test for order=random_1234 2024-02-17 12:38:16 +00:00
Shish
0d5b938a94 Create CONTRIBUTING.md 2024-02-17 12:37:08 +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
Github Actions
b97827a6af Auto-merge master to main 2024-02-16 11:22:01 +00:00
Shish
260d38c7f8 fix version 2024-02-16 11:20:51 +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
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
9c4e306b58 [tag_edit] separate responsibility for tags, source, owner, and lock 2024-02-12 22:08:47 +00:00