Commit graph

3085 commits

Author SHA1 Message Date
Shish
f0e8bd9ee1 [ext/reverse_search_links] apply style directly to the link, no matter where it is positioned 2023-09-06 12:37:13 +01:00
Shish
38af9eb0c4 [ext/reverse_search_links] remove custom position options, for now 2023-09-06 12:37:13 +01:00
Joe
03e24a4c92 fully remove IQDB support 2023-09-06 12:37:13 +01:00
Joe
7fcb4078dd add reverse image search links extension 2023-09-06 12:37:13 +01:00
Shish
867fdec284 [pools] remove mysql-specific bits 2023-08-18 22:27:42 +01:00
Shish
7a4f033cce split installer CSS into its own file, since we only use it in one place 2023-08-18 21:51:01 +01:00
Shish
43c7be0e89 dedicated search_link() function for generating links to search results, see #936 2023-08-18 13:52:03 +01:00
Shish
23e36b4349 only link to post/list when you actually want post/list, if you want just a default page, leave it empty 2023-08-18 12:45:56 +01:00
Shish
7f048ff6f2 [ratings] link the rating to the appropriate search, fixes #936 2023-08-18 12:45:27 +01:00
Shish
5879184895 SHM_POST_INFO element for doing info box elements in a standard way 2023-08-17 18:21:28 +01:00
Shish
aa8de9d420 the php string type is lowercase 2023-08-17 18:20:46 +01:00
Github Actions
9c0a6ebec3 Auto-merge master to main 2023-08-16 14:54:27 +00:00
Shish
f040709a76 proper support for html in usernav 2023-08-16 15:52:14 +01:00
Luana
3179cc1969 format 2023-08-16 15:40:08 +01:00
Luana
498d71ab45 index help html 2023-08-16 15:40:08 +01:00
Luana
b29d536e19 more microhtml 2023-08-16 15:40:08 +01:00
Luana
a5e585d991 SHM_A 2023-08-16 15:40:08 +01:00
Luana
ff237fc00c pools theme fully MicroHTML 2023-08-16 15:40:08 +01:00
Luana
0978ef99e3 MicroHTML on pools ext 2023-08-16 15:40:08 +01:00
Luana
8202367eaa build_selector and make_form_microhtml as SHM_ functions 2023-08-16 15:40:08 +01:00
Luana
d47df46a7f pool adder MicroHTML 2023-07-03 16:35:43 +01:00
Luana
98aca16e73 format 2023-07-03 16:35:43 +01:00
Luana
34b608c4b7 ratings ext fully MicroHTML 2023-07-03 16:35:43 +01:00
Luana
91710f4c59 More MicroHTML 2023-07-03 16:35:43 +01:00
Luana
84d232ca0d build_selector returns HTMLElement 2023-07-03 16:35:43 +01:00
Luana
ca88b28b1e use MicroHTML 2023-07-03 16:35:43 +01:00
Luana
9cbddd629e oops 2023-07-03 16:35:43 +01:00
Luana
9038afc47a another build_selector use case 2023-07-03 16:35:43 +01:00
Luana
8db0086d7a standard HTML select code 2023-07-03 16:35:43 +01:00
Shish
2b26908624 force searches to always search /post/list, fixes #930 2023-07-03 15:34:28 +01:00
Shish
f7f0c11ee8 [danbooru api] ignore star searches 2023-07-03 11:40:15 +01:00
Shish
3c18ebd40c use Tag/SourceSetEvent for mass editing, to ensure the standard rules are followed 2023-07-03 10:58:15 +01:00
Shish
0f162fe32a format 2023-06-28 13:09:02 +00:00
Shish
c813700d98 case-insensitive message search for postgres 2023-06-28 13:09:02 +00:00
Shish
8fb6fd5f54 stricter nulls 2023-06-27 17:45:35 +01:00
Shish
eca49bfc94 don't cache data that mostly won't be used 2023-06-27 17:30:40 +01:00
Shish
aae902e44d an array is an array 2023-06-27 17:30:09 +01:00
Shish
00d4f9f75c always have a Themelet, never null 2023-06-27 16:11:14 +01:00
Shish
e62cdb0979 offset can't be null, and named args 2023-06-27 15:32:39 +01:00
Shish
928c9d95d1 Blocks can accept HTMLElements directly 2023-06-27 11:59:39 +01:00
Shish
8ebd8bf287 format 2023-06-27 11:45:27 +01:00
Shish
38edf739fc avoid treating html as strings 2023-06-27 11:44:46 +01:00
NottyNoz
56a60a9ec1 upload form update 2023-06-27 11:41:53 +01:00
NottyNoz
909e54b1e2 fixes 2023-06-27 11:41:47 +01:00
NottyNoz
cf6d994de4 . 2023-06-27 11:37:57 +01:00
NottyNoz
cf9837a776 bulk tagit fix 2023-06-27 11:33:42 +01:00
Shish
f18fb336a6 FFS, MySQL - can't set a default on a text column, can't add a not-null column... 2023-06-26 15:11:28 +01:00
Shish
ef52d572f1 default empty userclass for blocks 2023-06-26 14:46:11 +01:00
Luana
d1da3504f1 show blocks based on user class 2023-06-26 08:59:25 +01:00
Luana
4e6ca4d184 option to hide post counters (home) 2023-06-26 08:55:19 +01:00
Shish
8f70075c45 don't autocomplete for tag case fixing 2023-06-25 22:00:04 +00:00
Shish
5c4a9ea2ef create new transaction 2023-06-25 21:46:51 +00:00
Shish
dd48681524 commit work-in-progress tag replacements 2023-06-25 21:22:00 +00:00
Shish
33f32f7b22 Revert "INSERT ... RETURNING is well-supported now" - mysql doesn't...
This reverts commit 633d5c5348.
2023-06-25 20:31:11 +00:00
Shish
1f908bdd05 use array_merge / array_diff rather than for loops 2023-06-25 20:26:51 +00:00
Shish
633d5c5348 INSERT ... RETURNING is well-supported now 2023-06-25 20:25:09 +00:00
Shish
a94ead8c04
Merge pull request #922 from luanalatte/author-change
update authors
2023-06-25 21:23:52 +01:00
Luana
7d78bbaad4 update authors 2023-06-25 16:14:52 -03:00
Shish
a03840c60e
Merge pull request #921 from luanalatte/approval-bypass
Approval bypass
2023-06-25 19:54:07 +01:00
Luana
65e6bae1f4 Remove bypass aproval config 2023-06-25 15:33:28 -03:00
Shish
e66acefa53 extra tracing for bulk tag edit 2023-06-25 14:42:24 +00:00
Shish
c5e2353447 manual timeouts 2023-06-25 14:19:52 +01:00
Shish
b85e7ec209 manually control timeout, to dump trace data after hitting the limit 2023-06-25 13:40:57 +01:00
Shish
1d4c43f33b no autocomplete for r34 2023-06-25 10:17:56 +00:00
Shish
4117678d72 "People seem to be madder about robots than ponies nowadays" 2023-06-25 10:02:02 +00:00
Shish
9adee430ca fade out permissions which are inherited from the parent userclass 2023-06-25 00:26:34 +01:00
Shish
162aaccb62 Display documentation for permissions 2023-06-24 21:24:25 +01:00
Shish
ec854036e0 format 2023-06-24 19:35:03 +01:00
Shish
e51c6bed20 show a table of user classes, see #921 2023-06-24 12:10:28 +00:00
Luana
76e28b9a14 format 2023-06-14 05:15:14 -03:00
Luana
6cbc12e427 Approval bypass 2023-06-14 04:48:38 -03:00
Shish
133616e508 Autocomplete tags for anything with class=autocomplete_tags
Not all search boxes are tag-search boxes

If somebody doesn't want autocompleted tags, then don't use
class=autocomplete_tags?
2023-05-25 14:04:13 +01:00
Shish
85a5ed2dd6
Merge pull request #907 from tegaki-tegaki/feature/check_mime_on_upload
implement MIME checks on upload
2023-05-25 13:31:51 +01:00
Shish
12f0bc3a81 Allow SearchTermParseEvent to have a bit more control over results
Rather than "add querylet or do nothing", moving more code into the
event means that event handlers are able to add a positive or negative
querylet, add a positive or negative tag, or do nothing

This means that events can respond to the `null` search term by adding a
tag, which would be useful for #917
2023-05-25 12:59:25 +01:00
Shish
4ba3af7926 version bumps 2023-05-25 12:58:41 +01:00
Shish
b5b7fe7d9e allow admin to bypass user creation block 2023-04-03 22:14:51 +00:00
Shish
9b463ce674 text 2023-03-30 21:27:12 +00:00
Shish
33e1e20beb [static] also avoid robots getting stuck on history pages 2023-03-30 19:43:14 +00:00
Shish
7d6615c298 trim 2023-03-30 19:40:17 +00:00
Shish
fddc1fd453 [img] allow CLI image deletion 2023-03-30 19:40:17 +00:00
Shish
7e017ded3b format 2023-03-30 20:37:06 +01:00
Shish
46f75f7b34 [static] allow extensions to customise robots.txt 2023-03-30 20:36:58 +01:00
Shish
eea4866e27
Merge pull request #909 from yls4/master
Bulk Actions for setting a chain of parent child relationships in the…
2023-03-29 00:04:15 +01:00
myname
f43ed0ee71 Removing unnecessary lines, fixing namespace 2023-03-27 14:32:41 -05:00
myname
0b5f6c310d Adding namespace 2023-03-27 14:26:39 -05:00
NottyNoz
a98560b061 tagit fix and ui 2023-03-27 16:45:59 +01:00
NottyNoz
4253d357af board config cleanup 2023-03-27 16:45:59 +01:00
NottyNoz
c4317cab0d documentation cleanup 2023-03-27 16:45:59 +01:00
NottyNoz
e7bc6c733a . 2023-03-27 16:45:59 +01:00
yls4
d6a0d0cb8d
Merge pull request #1 from shish/master
Updating to current version
2023-03-26 17:09:08 -05:00
myname
a352a02b2e Bulk Actions for setting a chain of parent child relationships in the order of images selected.
Does not support setting multiple children to one parent in bulk.
2023-03-26 17:01:46 -05:00
Tegaki
2882bffe35 implement MIME checks on upload 2023-03-22 21:46:15 +01:00
NottyNoz
0c1fc9b85e . 2023-03-16 22:34:52 -04:00
NottyNoz
48c3eae6b9 fixes 2023-03-16 22:29:45 -04:00
Shish
6bf7d63a29 [grahpql] update_post_metadata 2023-03-08 22:31:13 +00:00
Shish
7ced11fba8 add a separate upload API for graphql clients 2023-02-24 22:50:42 +00:00
Shish
6d41012f50 use permissions for voting 2023-02-24 22:49:10 +00:00
Shish
36951db563 use DataUploadEvent fields rather than required metadata 2023-02-24 22:42:03 +00:00
Shish
cfa7434d8d user creation 2023-02-24 21:12:58 +00:00
Shish
95b081e9a3 put constructor data in constructor 2023-02-24 21:12:00 +00:00
Shish
077a5e7727 fix php8.2 warnings 2023-02-19 11:24:33 +00:00
Shish
7d7d555671 fmt 2023-02-19 11:13:51 +00:00
Shish
fa95ccea23 Don't crash if /dev/tty is missing 2023-02-17 11:31:34 +00:00
Shish
e551e74741 logic 2023-02-16 20:29:24 +00:00
Shish
0f69c9de45 if we're already using stdout for something else, don't log to stdout 2023-02-16 20:28:27 +00:00
Shish
743f4d8b5a add log_console 2023-02-16 20:25:47 +00:00
Shish
b5bbff531c set defaults for log_net / log_logstash 2023-02-16 19:30:24 +00:00
Shish
4030d8bee7 default article date 2023-02-15 21:59:32 +00:00
Shish
ae8d8033b9 safer cache keys 2023-02-14 01:19:28 +00:00
Shish
3040c1d5b5 argh 2023-02-14 01:05:22 +00:00
Shish
1da0f427e6 my_vote field 2023-02-13 22:44:08 +00:00
Shish
301a5d3027 updates 2023-02-13 22:28:50 +00:00
Shish
03cf09937b fixes 2023-02-12 12:27:37 +00:00
Shish
817a2ff2f4 can't set timeout when the db isn't connected 2023-02-08 01:33:47 +00:00
Shish
3b89acc458 workaround 2023-02-08 01:05:31 +00:00
Shish
7d47b452df var_export is nicer than print_r 2023-02-08 00:54:13 +00:00
Shish
648424d5c5 static function for mutation 2023-02-08 00:18:10 +00:00
Shish
ef8e25d6f2 Add options for CORS 2023-02-07 14:18:21 +00:00
Shish
fadadc0efd Use HTTP/1.1 2023-02-07 13:56:44 +00:00
Shish
ea29e7c954 more fields 2023-02-07 13:27:20 +00:00
Shish
6d301b5ec4 gqla updates 2023-02-05 15:56:06 +00:00
Shish
78dbcb8626 comments are non-null 2023-02-04 21:08:14 +00:00
Shish
689b2b13af send_event(T) -> T 2023-02-04 20:50:26 +00:00
Shish
8492ae9ea4 graphqlitism 2023-02-04 18:55:19 +00:00
Shish
886319d88b numeric score API 2023-02-04 18:00:23 +00:00
Shish
300586d179 pm graphql 2023-02-04 14:47:26 +00:00
Shish
f8e3a6e9e7 smaller PM tests 2023-02-04 14:16:32 +00:00
Shish
180f21e29e Use graphqlite-like API 2023-02-04 13:29:21 +00:00
Shish
fcfeed8413 fix l2 errors 2023-02-03 20:03:04 +00:00
Shish
ff71a89948 fixes 2023-02-03 16:58:16 +00:00
Shish
54e2ca21ec phpstan 2023-02-03 16:44:16 +00:00
Shish
8219cd7686 assert something 2023-02-02 16:52:55 +00:00
Shish
9721dc8050 format 2023-02-02 16:50:09 +00:00
Shish
ab874cffd3 Let's not implement our own cache abstraction layer 2023-02-02 16:49:41 +00:00
Shish
06cba13b8c set featured_id to 0 if the featured image is deleted 2023-02-02 16:40:03 +00:00
Shish
708e102338 Have shimmie's global cache object implement PSR-16 2023-02-02 16:04:35 +00:00
Shish
e79470d974 experimental graphql api 2023-02-01 21:57:18 +00:00
Shish
39e29a883a iso8601 2023-02-01 19:55:41 +00:00
Shish
22fb8b3b3c only set source if needed 2023-01-30 23:41:41 +00:00
Shish
fe72ba25d0 set source during upload using SourceSetEvent 2023-01-30 23:31:20 +00:00
Shish
120a5273e5 Post ID in navigation slot 2023-01-30 21:35:38 +00:00
Shish
e629d3d5ca click to copy class 2023-01-30 21:35:12 +00:00
Shish
1037c30dfe Allow setting source to blank 2023-01-30 20:53:58 +00:00
Shish
9b6f40e06e updates 2023-01-11 18:39:46 +00:00
Shish
38609133b1 [report_image] force wrapping 2023-01-11 18:38:18 +00:00
Shish
ee1a3f933b argh 2023-01-11 18:35:15 +00:00
Shish
1f48c5ba19 remove some unused bits 2023-01-11 18:28:43 +00:00
Shish
1d563cf87f argh some more 2023-01-11 13:43:43 +00:00
Shish
2a18322dd5 god damn it php 2023-01-11 13:27:57 +00:00
Shish
8e1b371e83 argh 2023-01-11 12:13:04 +00:00
Shish
f0c6dec798 nits 2023-01-11 11:59:56 +00:00
Shish
0d77a1dc81 nits 2023-01-11 11:46:42 +00:00
Shish
f91daba264 count less 2023-01-11 11:41:13 +00:00
Shish
5a64e8729b nits 2023-01-11 11:15:26 +00:00
Shish
bce2d55744 Namespaces are one honking great idea—let's do more of those! 2023-01-10 22:44:09 +00:00
Shish
165eea11b1 all the strict_types 2023-01-10 21:21:26 +00:00
Shish
a04bc2e7e4 php8.1 gogogo 2022-10-28 01:45:35 +01:00
Shish
47ab0eda0a Jesus heckin' christ PHP is awful
PHP-CS-Fixer 3.12.0 on my laptop gives different results to PHP-CS-Fixer
3.12.0 in github...
2022-10-27 17:29:24 +01:00
Shish
4ff93c63c3 new php-cs-fixer, new opinions about what is today's preferred format... 2022-10-27 17:21:46 +01:00
Shish
0be8e835ef avoid crashing in cron_upload if API key isn't set, fixes #881 2022-10-27 17:15:48 +01:00
myname
ccb78e272c Allows appending new tags to existing ones in auto_tagger 2022-10-07 18:41:53 -05:00
myname
3154a833f7 Add Post/List view button to pools, for easier access to functions in the post/list extension 2022-10-07 15:33:24 -05:00
myname
d52d4a6899 Add search by pool id 2022-10-07 15:19:50 -05:00
myname
531b903830 Pool - Reverse function 2022-10-06 17:34:04 -05:00
Shish
f57dc61cb7 only hide images if image approbals are enabled 2022-07-10 01:40:04 +01:00
Shish
e97198aa10 format 2022-07-09 23:37:43 +01:00
Shish
476808db4b
Merge pull request #863 from jellykells/jellykells/owner_view_unapproved
Allow image owner to view their unapproved images
2022-07-08 22:20:52 +01:00
Shish
606c1fdedc
Merge pull request #878 from friends-of-the-core/autocomplete-in-more-places
Autocomplete in more places
2022-07-08 22:10:54 +01:00
Shish
25e5fc9c17
Merge pull request #860 from yls4/master
Fixing home page pool link and fixing Notes not displaying due to css
2022-07-08 22:10:38 +01:00
Shish
b859e1fc60
Merge pull request #869 from thoughever/reverse_proxy
X-Real-IP support and Varnish PURGE config options
2022-05-01 10:42:54 +01:00
Shish
3f553501f9
Merge pull request #876 from friends-of-the-core/preserve-posted-date-on-rotate
Preserve posted date on rotate
2022-05-01 10:24:48 +01:00
Shish
895207bf6b
Merge pull request #877 from friends-of-the-core/reduced-video-thumbnail-memory-usage
Scale thumbnails in ffmpeg to avoid excessive memory use on high-resolution videos
2022-05-01 10:19:26 +01:00
Jessica Stokes
d4c45112ee Autocomplete in bulk tag editor, too 2022-04-29 11:44:42 -07:00
Jessica Stokes
335b8a94c4 Allow autocomplete for tagging in addition to tag searching 2022-04-29 11:44:42 -07:00
Jessica Stokes
891c69d94d Scale thumbnails in ffmpeg to avoid excessive memory use on UHD videos 2022-04-29 11:33:22 -07:00
Jessica Stokes
5c79e05f08 Inherit post date when rotating images 2022-04-29 11:29:04 -07:00
Jessica Stokes
dfaf9b5a2f Add order:favorites to autocomplete 2022-04-29 11:14:12 -07:00
Jessica Stokes
4b086a8c70 Allow ordering by favorites in searches 2022-04-29 11:12:00 -07:00
thoughever
f15407bc75 X-Real-IP support and Varnish PURGE config options
X-Real-IP for core functionality

Global config define REVERSE_PROXY_X_HEADERS

Config host and port for varnish PURGE

config option to specify PURGE protocol

exception in curl purge now shows error code

ipv6 x-real-ip addresses are now validated properly

X-Forwarded-Proto enabled by define
2022-01-20 22:25:22 +00:00
Shish
e0f1165b6c
Merge pull request #851 from jellykells/jellykells/wiki_return_not_found
Add option to return 404 code for nonexistent wiki pages
2022-01-01 10:27:27 +00:00
jellykells
f83588fdcd always return 404 code for nonexistent wiki pages 2021-12-30 22:06:39 -06:00
jellykells
a0190bff81 run php cs fixer 2021-12-23 22:18:33 -06:00
jellykells
29ed277f6d hide comments made on unapproved images from the comment list 2021-12-23 21:58:55 -06:00
jellykells
bdea799766 allow image owner to view their unapproved images 2021-12-23 21:45:44 -06:00
Shish
78349b3ae5 and fix the test 2021-12-21 23:41:04 +00:00
Shish
61068bc0d0 crude wiki history 2021-12-21 23:36:30 +00:00
Shish
a7e775de2b allow checking past revisions of wiki pages 2021-12-21 23:06:24 +00:00
=
aca5e7b9bb Fixing PHP Fixer Format 2021-12-20 10:36:14 +00:00
=
79612405e8 Fixing home page Pools link 2021-12-20 10:36:06 +00:00
=
0096a0dfa1 Updates css for imgNotes, notes won't show up otherwise 2021-12-19 18:44:08 -06:00
=
c062e231a8 Fixing PHP Fixer Format 2021-12-19 16:45:16 -06:00
=
1a22967b97 Fixing home page Pools link 2021-12-19 15:38:09 -06:00
flatanon
3b53ddbbc7 Fix auto_tagger issue with incorrect data type, expected int 2021-12-19 00:28:13 +00:00
flatty
9c05622d6e Fix uploader issue with SHM_FORM 2021-12-19 00:27:50 +00:00
flatanon
db973234ff Fix auto_tagger issue with incorrect data type, expected int 2021-12-18 16:22:40 -06:00
flatty
97424fbce6 Fix uploader issue with SHM_FORM 2021-12-17 23:40:55 -06:00
Shish
217a36a8c5 upload microhtml 2021-12-14 19:10:21 +00:00
Shish
3d9e32e919 new php-cs-fixer 2021-12-14 18:32:47 +00:00
Shish
b2ceb36499 better deleting of user's uploads 2021-12-13 01:27:49 +00:00
jellykells
1b7e505f19 add global to display_page function 2021-11-21 08:25:41 -06:00