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
2e8f38cce0
[core] merge Config and BaseConfig
...
Multiple layers of inheritance were confusing both humans and tools...
2024-08-31 19:33: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
8efa960e5d
Make some more things null-safe
...
(in preparation for bumping up the phpstan strictness to disallow null-unsafe code)
2024-08-31 19:19:24 +01:00
Shish
c88c26c256
[docker] remove unused tests target
2024-08-31 17:58:50 +01:00
Shish
8f8c0d151a
Update dependency versions
2024-08-31 17:06:39 +01:00
Shish
8a8d78ae66
[docker] add rsync for backups
2024-06-30 11:31:13 +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
94cdfd6952
[futaba] add missing class to username links
2024-06-22 13:16:49 +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
7150af6b9e
[core] use sha3 instead of md5 for csrf tokens
2024-06-21 19:35:47 +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
1ad6acf37c
[themes] add search link to rating
2024-06-21 18:27:51 +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
24d6aff794
[core] remove unusued isnull SQL function
2024-06-21 18:03:39 +01:00
Shish
5b083c9ad4
[core] different errors for missing vs invalid CSRF token
2024-06-21 00:24:57 +01:00
Shish
be842308d9
[core] have a system level SECRET variable, to be used as a salt separate from DATABASE_DSN
2024-06-21 00:18:43 +01:00
Shish
8cb87b2469
[core] add a test suite for SQL features
2024-06-20 23:22:58 +01:00
Shish
61f13c6794
[core] have User::by_session() check session ID on the PHP side
...
Generating the token on the PHP side is more consistent than getting the databases to do it
2024-06-20 01:13:10 +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
069fb92f54
[core] test for bool_escape(null) == false
2024-06-19 15:24:05 +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
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
discomrade
6ad54565c5
[core] allow relative url in contact link
2024-06-09 17:01:37 +01:00
discomrade
de05ca448f
[danbooru2] add autocomplete to view search field
2024-06-09 17:00:32 +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
Shish
2f07d4c71c
[core] make request cookies configurable
2024-06-07 14:47:30 +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
d04407d3bc
bump
...
`main` branch is working towards 2.12, not 2.11
2024-06-05 14:06:10 +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
Shish
15aaedb951
[danbooru2] minor fixes for signup form
2024-06-05 13:09:27 +01:00
discomrade
baf55a26fa
[terms] add terms and conditions gate
2024-06-04 20:04:38 +01:00