Commit graph

3341 commits

Author SHA1 Message Date
mjokfox
fcbd70e623 Fix a typo in the cache key
Message cache was not updating when reading a pm, found the issue to be a mistyped cache key
2024-09-03 17:17:14 +01:00
a7927a4209 Generate summary_large_image preview for images 2024-09-02 01:01:52 +01:00
Shish
edb4ca5e74 [settings] postToSettings
Trying to keep the weird POST-formatting to a minimum, using real types where possible
2024-09-01 00:13:53 +01:00
Shish
7353683a13 no implicit nulls (they are deprecated in php8.4) 2024-09-01 00:06:46 +01:00
discomrade
d8505f4469 [tag_history] prevent tag aliasing for correctness and huge performance improvement 2024-08-31 22:08:46 +01:00
discomrade
f50795029a [tag_history] add diff colour-coding to tag changes 2024-08-31 22:08:46 +01:00
Shish
8c2b6ade4b format 2024-08-31 22:02:26 +01:00
Shish
b3aa0fc381
Merge branch 'main' into speed-hax 2024-08-31 22:00:30 +01:00
discomrade
c83401d43b [relationships] use permission to check if editable 2024-08-31 21:38:09 +01:00
discomrade
eeef6da955 [filter] remove broken code 2024-08-31 21:36:20 +01:00
discomrade
30b437542d [setup] allow setting bool option to false if default is true 2024-08-31 21:33:28 +01:00
discomrade
d809b0b18e [bbcode] allow relative image links
This is useful for CSP when a site is hosted on multiple domains, such as a mirror.
2024-08-31 21:29:00 +01:00
Shish
399a56ac79 [dev] bump phpstan strictness
no more null surprises
2024-08-31 21:25:20 +01:00
Shish
845c8b3d85 [core] Make User::by_name / User::by_id not-null
Nearly everywhere that these functions are called, the result is assumed to be not-null, and a null will break things
2024-08-31 20:39:36 +01:00
Shish
8b20fa3bc2 Add preg_replace_ex
having preg_replace return string|array|null is a pain, string|exception is much cleaner
2024-08-31 19:56:27 +01:00
Shish
32368a8f94 people who need Configs should accept Configs, no need to specify BaseConfig 2024-08-31 19:19:46 +01:00
Shish
8f8c0d151a Update dependency versions 2024-08-31 17:06:39 +01:00
Shish
d4c17598fb [core] add PetalBot to the list of bots 2024-06-30 01:25:36 +01:00
Shish
bd3c6647af [biography] add logging 2024-06-29 18:44:56 +01:00
Matthew Barbour
1ed6704e19 Added sqlite compatible date criteria to numeric score.
Fixed missing semicolon that would cause the word "day" to appear on the "Popular by Day" screen after the current date.
Fixed month browsing issue when viewing "Popular by Month" on the 31st of a month, which happened to be today.
2024-06-24 19:33:57 +01:00
discomrade
9deeb38c00 [statistics] make usernames into links 2024-06-22 13:16:29 +01:00
discomrade
3fc9753e8e [statistics] alias tags before counting changes, include total edit count 2024-06-22 13:16:29 +01:00
discomrade
2a9228e244 [statistics] sort by tag id for correctness
Sorting by user.id was an oversight which caused tags to be miscredited when comparing against the previous tag history entry for an image. For example, whoever had the lowest user ID (rather than the uploader) had their entry considered the initial tag list.
2024-06-22 13:16:29 +01:00
Shish
d7f0f17fea [image_view_counter] use a proper DB version counter 2024-06-21 19:38:17 +01:00
Shish
17b0b4e94f [core] remove config->set_XXX("foo", null) -- use config->delete("foo") instead 2024-06-21 19:17:44 +01:00
Shish
f84bcaec01 microhtml for everything in <head>
I wanted to ensure that all pages (even the downtime page, terms page, home page, etc) had the appropriate `data-` attributes on `<body>` (because those are required for certain javascript, eg autocomplete, to work). One thing led to another and now everything in `head` is microhtml'ed
2024-06-21 18:52:05 +01:00
discomrade
839b4b51e8 [alias] add info on tag aliases and tag implications 2024-06-21 18:28:30 +01:00
discomrade
f7047350b9 [comment] move recent comments below tags on post list 2024-06-21 18:26:51 +01:00
discomrade
38a7bb542b use <code> where appropriate 2024-06-21 18:24:38 +01:00
Shish
8a3d5b5b11 [core] move get_session_id and set_login_cookie into User class 2024-06-20 01:07:11 +01:00
Shish
a59b9f706c [core] use || for SQL concatenation
MySQL supports this now?
2024-06-19 23:57:41 +01:00
Shish
ea700d5aa6 [core] have UserCreationEvent return the created user, so we don't need to immediately re-query for it 2024-06-19 23:57:07 +01:00
Shish
ac123317d8 [setup] console logging for niceurl tests 2024-06-19 22:19:51 +01:00
Shish
63c6f9d2ac [core] config->save() is implicit in set_XXX(), no need to call it from outside of there 2024-06-19 15:23:42 +01:00
Shish
e3e25c1228 [various] use set_default_int in InitExt rather than set_int in DatabaseUpgrade 2024-06-19 15:22:27 +01:00
Shish
68d87e3a84 [setup] have ConfigSaveEvent save the config 2024-06-18 17:37:39 +01:00
discomrade
350b44f250 [speed_hax] extract SPEED_HAX tweaks to extension 2024-06-14 13:52:49 +00:00
discomrade
f69d5a297f [blocks] add documentation 2024-06-11 15:37:15 +01:00
discomrade
60f96fa128 [blur] blur thumbs with explicit rating 2024-06-10 14:16:30 +01:00
Shish
51a4e753e4 [terms] allow users to view wiki pages before accepting the terms that are written in the wiki 2024-06-07 15:23:08 +01:00
Shish
978d0d629b [terms] add tests 2024-06-07 15:08:56 +01:00
discomrade
1bb0be60c6 [handle_pixel] show zoom cursor on images 2024-06-07 10:59:24 +01:00
discomrade
68be2c7123 [terms] implement terms and conditions blur modal, fixes #1166 2024-06-07 10:58:29 +01:00
Shish
db148da479 [core] add shm_make_link JS function, to generate links from JS which work both with and without niceurls, fixes #1160, fixes #1151 2024-06-05 14:01:40 +01:00
Shish
b6088f95c3 [notes] avoid jiggling on _commit() by accounting for border widths 2024-06-05 14:01:27 +01:00
discomrade
baf55a26fa [terms] add terms and conditions gate 2024-06-04 20:04:38 +01:00
Shish
5cbbe5e1b3 [core] remove is_logged_in
This was only used in a couple of places, and user classes are more useful
2024-05-04 16:06:08 +01:00
discomrade
9453fda166 [statistics] omit banned users 2024-05-04 15:18:57 +01:00
discomrade
7b682bf246 [statistics] remove unused variable 2024-05-04 15:18:57 +01:00
discomrade
e23e822dd6 [statistics] improve accuracy of tagger statistic 2024-05-04 15:18:57 +01:00