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
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
discomrade
ba2bad48a6
[user] fix typo in password check
2024-05-04 15:01:33 +01:00
discomrade
8b674d598e
[filter] fix thumb display css
...
unsetting the display option can disable display: block, which allows the thumbnails to be centred in their container
2024-05-04 14:58:32 +01:00
Shish
2fe44303c3
[dev] postStartCommand rather than postCreateCommand for running the service
2024-05-04 14:58:05 +01:00
Shish
f6973fd01f
[core] make PageRequest->page_starts_with be less weird
2024-04-27 01:12:39 +01:00
Shish
124f3ebb8d
test tags
2024-04-25 15:05:03 +01:00
Shish
262fc43026
[statsd] group by starts_with, not matches
2024-04-25 14:58:10 +01:00
Shish
9c786bf4b5
[docs] remove scrutinizr links
2024-04-18 21:53:32 +01:00
Shish
fc6f95de8f
[blocks] 'delete' param isn't required
2024-04-18 15:42:07 +01:00
Github Actions
4088261bcb
Auto-merge master to main
2024-04-13 23:08:31 +00:00