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
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
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
262fc43026
[statsd] group by starts_with, not matches
2024-04-25 14:58:10 +01:00
Shish
fc6f95de8f
[blocks] 'delete' param isn't required
2024-04-18 15:42:07 +01:00
Shish
426f30e8d5
[wiki] fixes
2024-04-12 02:57:50 +01:00
Shish
ed0eb1401c
[rss_images] fix page matching... for real?
2024-04-08 21:34:56 +01:00
Shish
4544960a4b
[rss_images] fix page matching
2024-04-08 21:20:42 +01:00
Shish
4807064a65
[featured] fix feature button
2024-04-07 10:27:38 +01:00
discomrade
4a5d30e0bf
[filter] add filter extension
...
This extension is derived from Danbooru's blacklist code
2024-04-05 17:42:03 +01:00
discomrade
8af5b2f3db
[ratings] add ratings field to upload
2024-03-29 09:27:50 +00:00
discomrade
571839ec4a
[upload] build post fields using events
2024-03-29 09:27:50 +00:00
discomrade
8af33ded18
[statistics] add statistics page
2024-03-29 09:26:21 +00:00
Shish
b59fe4c694
Have a common PartListBuildingEvent, fixes #1124
2024-03-28 16:17:18 +00:00
discomrade
8d489b4f90
[notes] Round note dimensions to int
2024-03-22 13:47:37 +00:00
Shish
8f86ddaa75
[regen-thumb] have regen-thumb ext handle the regen-thumb command
2024-03-17 22:38:03 +00:00