Commit graph

15868 commits

Author SHA1 Message Date
Ben Rog-Wilhelm
4fc50e16ac Boost post length maximum. 2024-04-01 00:49:52 -05:00
Ben Rog-Wilhelm
5ab013fb4a Fix: Nuke-user option broken. 2024-01-31 13:30:43 -06:00
ToaKraka
495696bad6 Make pre elements legible 2024-01-13 09:32:00 -06:00
ToaKraka
040fd99997 Recommend that users use th elements in table headers
https://html.spec.whatwg.org/multipage/tables.html#the-th-element
2024-01-13 09:31:36 -06:00
ToaKraka
3c6626ae9e Improve table formatting
Remove random bold weight and add borders
https://www.themotte.org/post/810/smallscale-question-sunday-for-december-31/176518?context=8#context
2024-01-05 04:26:37 -06:00
gldrk
f4b280eaee Formatting buttons: handle nested formatting 2023-12-09 17:11:38 -06:00
gldrk
b4777adde6 Formatting buttons: handle multiple paragraphs 2023-12-09 17:11:38 -06:00
gldrk
7688a4d39f Formatting buttons: exclude surrounding whitespace 2023-12-09 17:11:38 -06:00
gldrk
11c6ffd946 Formatting buttons: update preview when all text is deleted 2023-12-09 17:11:38 -06:00
gldrk
00b8e7a2ec Improve behavior of formatting buttons
* Synthesize an input event to trigger a preview update.
* Slightly tweak the algorithm.
2023-12-09 17:11:38 -06:00
gldrk
61ec760536 Fix typo in reply container id 2023-11-27 03:44:04 -06:00
gldrk
6741d4c41d Add reply container for comments at depth limit 2023-11-27 00:07:07 -06:00
Walter Miller
a856dcbf3b
Fix notifications from blocked users (#711) 2023-11-08 06:45:08 -06:00
Walter Miller
52268047b3 adjust whitespace in comments.html 2023-11-08 04:12:39 -06:00
Ben Rog-Wilhelm
fc8834950e Fix: HCaptcha broken. 2023-10-12 12:41:45 -05:00
Ben Rog-Wilhelm
c5d380afb1 Fix: Add CSP for hcaptcha. 2023-10-12 12:16:58 -05:00
Ben Rog-Wilhelm
6078b2e697 Fix: Tabs in the content header breaks nginx. 2023-09-11 04:34:27 -05:00
Ben Rog-Wilhelm
9edfb64c08 Actually clean this up *properly*. 2023-09-11 04:00:58 -05:00
Ben Rog-Wilhelm
b345a62dbb
Bring the CSP up to standard. (#699) 2023-09-11 02:56:39 -05:00
Viet Than
e7926952b3
🏦 Database Change: convert created utc to datetimez for viewers (#697)
* passed the test

* this works better

* Remove commented-out code.

* Remove commented-out code.

---------

Co-authored-by: Ben Rog-Wilhelm <zorba-github@pavlovian.net>
2023-09-11 02:45:17 -05:00
Ben Rog-Wilhelm
7b12fba945
Clean up CSP a little more to work properly with Analytics. (#698) 2023-09-11 02:24:16 -05:00
Ben Rog-Wilhelm
75edfe8b31
Fix: Mod-only information leaked via the API. (#696) 2023-09-04 23:09:54 -05:00
Ben Rog-Wilhelm
41497958b6 Clean up a few minor code quality issues in the chat system. 2023-09-04 15:28:25 -05:00
Ben Rog-Wilhelm
ae58ca89eb Add debug option to make volunteer debugging easier. 2023-09-04 12:42:33 -05:00
Ben Rog-Wilhelm
310c6c4424
Rig up chat to be suitable for a Doge election. (Hopefully.) (#692)
* Integrate chat from upstream

Substantially borrowed from upstream ref: 13a208ee88e55 (before they
started editing generated artefacts instead of source).

Integrated, including:
  - Remove previously removed features: emoji, hats, and name colors
  - Compensate for lack of unified root template
  - Add React build process to Dockerfile and `bootstrap/init.sh`
  - Preliminary integration of chat websocket workers

For testing, modify `supervisord.conf.dev` to put chat on port 80 and
the site service on some other port. Then visit: http://localhost/chat

Still to do:
  - Access control for specific small-groups (and admins probably):
    Set the values somewhere (site_settings.json? Redis?) and use for
    authorization in `chat_is_allowed`.
  - Proxying only /chat to the websocket workers
  - Chat persistance across restarts: either Redis devops or to DB

* Add nginx server to do appropriate redirection.

* Add necessary columns to User.

* Wire up chat permissions.

* Reload chat on source change.

* Add a better structure for slash commands and add/remove functionality.

* Stop putting up previews of slash commands.

* We require more whitespace.

* Strip DMs out entirely, I currently do not want to deal with them.

* Change "Users Online" to just "Users".

* Clean up a little more DM detritus.

* Save chat history in database.

* Remove unnecessary hefty query to the DB.

* Clean up optimistic messages.

* Initial implementation of notification icon.

* Update readme a little bit.

* Fix notification highlight (mostly).

* Remove chat version number that will never be updated.

* Fix: Errors on logged-out users.

* Add function to nuke the chat state.

* Update DB.

* Add a dedicated deployable docker image.

* Fix: init_build.sh execute bit not set.

* Whoops, screwed up the abort() call.

* Relax chat rate limiter.

* Remove a somewhat silly comment.

* Remove an unnecessary g.db.add().

---------

Co-authored-by: TLSM <duolsm@outlook.com>
2023-09-04 12:42:20 -05:00
Ben Rog-Wilhelm
7032d0680d Fix: Release-mode server trying to reload on code changes. 2023-09-02 18:42:41 -05:00
Ben Rog-Wilhelm
c14fce184c Fix: Usernotes aren't sorted by timestamp. 2023-08-27 13:20:34 -05:00
Ben Rog-Wilhelm
dba6d37456 Fix: Volunteer timestamp field doesn't default properly 2023-08-25 11:21:17 -05:00
Ben Rog-Wilhelm
2f82457f5e Fix: Two spoilers on the same line causes unintended results. 2023-08-25 03:20:34 -05:00
Ben Rog-Wilhelm
cba354098f Compensate for a currently-unsolved bug involving notifications with weird states. 2023-08-25 02:25:29 -05:00
Ben Rog-Wilhelm
a32fe3e90c Add a commented-out line to support specific DB files during dev. 2023-08-25 02:25:07 -05:00
Viet Than
4f8ba42738
🏦 Database Change: convert created utc to datetimez for volunteer_janitor (#679) 2023-08-25 01:00:09 -05:00
Ben Rog-Wilhelm
3187a372fe Add link to the Dev Discord in the Readme. 2023-08-23 18:39:21 -05:00
Ben Rog-Wilhelm
ae85dcce99
Fix: No button for replying to PM's. (#673) 2023-08-09 03:07:04 -05:00
Ben Rog-Wilhelm
2adae47b19 Stop deleting notifications to private messages after reply. 2023-08-09 02:50:55 -05:00
Ben Rog-Wilhelm
7d1ff848d8 Add an environment variable to enable the spammy SQL diagnostics. 2023-08-09 02:35:27 -05:00
justcool393
335f19f561
excise country club (#665) 2023-08-08 23:51:39 -05:00
Ben Rog-Wilhelm
b557812e07 Ensure that Janitor comments are visible; ensure that Janitor comments aren't replies to the user. 2023-08-08 23:49:30 -05:00
Ben Rog-Wilhelm
65c50e4e4a Add new rules to sidebar. 2023-08-08 03:44:39 -05:00
Ben Rog-Wilhelm
e2c602e387 Fix: Username messaging redirects when it shouldn't. 2023-08-06 22:35:11 -05:00
Ben Rog-Wilhelm
8942046a1c Fix: Null reference when sending messages through a non-comment window. 2023-08-06 22:35:11 -05:00
Ben Rog-Wilhelm
bc9c59c92c Fix: Javascript filename typo. 2023-08-06 22:35:11 -05:00
Viet Than
15f387f109
🏦 Database Change: convert created utc to datetimez for votes (#670) 2023-08-02 22:16:29 -05:00
Viet Than
53c78c4536
🏦 Database Change: convert created utc to datetimez for usernotes (#669) 2023-08-02 21:46:48 -05:00
Viet Than
e1075eb722
🏦 Database Change: convert created utc to datetimez for notifications (#668) 2023-08-02 21:35:05 -05:00
Viet Than
34b328583c
🏦 Database Change: convert created utc to datetimez for modactions (#667) 2023-08-02 17:37:38 -05:00
Viet Than
356f7e2f41
🏦 Database Change: convert created utc to datetimez for follows (#666) 2023-08-02 17:36:16 -05:00
justcool393
0138596dca fix remove/approve buttons not working from listing page 2023-07-28 16:18:47 -05:00
Viet Than
eb78ec6169
🏦 Database Change: convert created utc to datetimez for flags (#633) 2023-07-28 05:41:11 -05:00
justcool393
2d6c844693 fix usernote button not working on morecomments and viewmore
fixes #284
ref #283
2023-07-28 05:17:14 -05:00