Commit graph

3255 commits

Author SHA1 Message Date
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
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
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