Commit graph

6495 commits

Author SHA1 Message Date
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
Shish
3d905b1055 [core] load null-strings as null, fixes #1023 2024-02-12 16:03:37 +00:00
Shish
29ff1b7333 [ci] bump actions/cache version 2024-02-12 13:53:25 +00:00
Shish
f031af44ba [ci] bump actions/checkout version 2024-02-12 13:51:11 +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
53f0c130a3 [danbooru2] GET for search query 2024-02-12 11:26:13 +00:00
Shish
b06cf0b1da [core] don't make_link(make_link(path)), fixes #1029 2024-02-12 11:19:24 +00:00
Shish
9998b3501d bump 2024-02-12 11:16:28 +00:00
Shish
263c455457 more consistent use of q parameter 2024-02-12 11:12:50 +00:00
Shish
7b2321e989 [htaccess] cache css/js for one day 2024-02-12 11:05:49 +00:00
Shish
f9d06d5e7e [core] fix nicedebug 2024-02-11 23:30:39 +00:00
Shish
cf2edb91f5 [htaccess] set php.ini settings 2024-02-11 23:16:08 +00:00
Shish
62ece58403 [core] fix uglyurl thumbs 2024-02-11 21:37:00 +00:00
Shish
60a6e92231 [log_console] silence error if we can't open the tty 2024-02-11 21:27:38 +00:00