Commit graph

7947 commits

Author SHA1 Message Date
Ben Rog-Wilhelm
3d27696210
Tweak a field name to hopefully slow some spambots. 2025-01-11 12:14:50 -06:00
Galen Huntington
8fbd3cdfea Fix tooltips on Edited time. 2024-06-12 21:37:08 -05:00
Ben Rog-Wilhelm
dd22ee61b9 Add timestamp to reports. 2024-04-09 10:22:57 -05: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
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
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
7b12fba945
Clean up CSP a little more to work properly with Analytics. (#698) 2023-09-11 02:24:16 -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
ae85dcce99
Fix: No button for replying to PM's. (#673) 2023-08-09 03:07:04 -05:00
justcool393
335f19f561
excise country club (#665) 2023-08-08 23:51:39 -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
bc9c59c92c Fix: Javascript filename typo. 2023-08-06 22:35:11 -05:00
justcool393
0138596dca fix remove/approve buttons not working from listing page 2023-07-28 16:18:47 -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
justcool393
2f0ed92318 Standards recommend we use HTTP headers for our CSP
Let's do that.
2023-07-28 05:16:51 -05:00
justcool393
6e28a4e30c fix signup scripts not being inserted into page 2023-07-28 05:14:56 -05:00
justcool393
a5e658ea42 fix deep comment reply hang
fixes #594
2023-07-28 05:14:27 -05:00
justcool393
0e8856ee46
combine postToast variants (#648) 2023-07-28 05:05:47 -05:00
justcool393
46714fd520
rename truecoins -> truescore (#544) 2023-07-28 04:56:49 -05:00
justcool393
c6d3cbdba9
user private profile restrictions (#652) 2023-07-27 06:07:04 -05:00
justcool393
56cfed43f9 fix toast z index by... removing the explicit z-index 2023-07-27 06:00:55 -05:00
justcool393
a3180fad2a
Make commenting the default (#646) 2023-07-24 06:07:17 -05:00
Ben Rog-Wilhelm
fb530268bf Mute the approve/remove button colors for less visual distraction. 2023-07-22 23:18:09 -05:00
justcool393
a5a344f084
fix duplicate ~new~ indicators being sent (#642)
we also make the JS we're generating about 7% the size it was before.
2023-07-22 19:52:09 -05:00
justcool393
2541737833
remove extra divs (it seems we never needed them in the first place?) (#627) 2023-07-22 19:50:39 -05:00
justcool393
672745ee6c
combine 5 different post/comment filter state adjustment routes (#637) 2023-07-22 19:34:08 -05:00
justcool393
c8964b272e use permissions constant instead of literal 2 2023-07-20 20:18:48 -05:00
justcool393
fde5840be4
reformat submission_banned.html template (#629)
it's kinda hard to give a good description but this fixes a bug where
the raw HTML of a post's content (not mediated by `realbody`) is being
sent to the `submission_banned.html` template. it also fixes the
formatting.
2023-07-15 23:34:18 -05:00
justcool393
8191d5a4cf
rename fullnames
Handle a couple places with `t3_` that persisted from code movement.
on master after time of branch.

Then, fix commenting, which used inaccurate fullname parsing logic.
2023-07-13 14:37:28 -05:00
justcool393
db1f578f26 simplify visibility states using the new visstates
because of #606, we now have a relatively decent way of representing
how post/comment state is in the database. we'll use this in our code
which is used to determine what is shown in the UI
2023-07-13 14:13:13 -05:00
sovejero
285cb2b50c add unsoported theme tag and missing div 2023-07-13 12:24:29 -05:00
justcool393
231c0f420f
Refactor auth forms (#624) 2023-07-13 11:50:26 -05:00
sovejero
a5807efb75
refactor: simplify email template and adjust theme #131 2023-07-13 11:48:25 -05:00
TLSM
6fde14a92c Use reddit-style notifs without context
The notifications schema is already set up for reddit-style
chronological notifications. We simply have to remove the logic that
builds the context and patch up a few places in the frontend that
were expecting full reply trees.

`Comment.header_msg` previously expected the user's own comment to
be top-level in comment replies. Logic is revised to expect the actual
reply.

`files.routes.front.notifications_main` now has reduced query volume
because we aren't expiring the session when marking notifications read.
This also allows us to remove the unused `comms` variable, which is a
makeshift "pattern" of storing duplicate database replies across a
commit so the templates don't requery (thus losing data attached to
the runtime object, like `c.unread` / `c.notif_utc`).

We move the `is_notification_page` flag to the route callers rather
than templates checking `request.path`.

Minor UI style: "Clear all notifications" -> "Mark All Read", since
this was a persistent point of user confusion upstream, with people
expecting their inbox to empty out. Also less margin between notifs
to be consistent with tighter comment display elsewhere and removed
need to separate groups of comments vs single comments.
2023-07-12 00:24:50 -05:00
TLSM
695e6b6dbd Split notification routes, hard wrap, sort order
Change the notifications subpages to be distinct route handlers with
actual paths rather than query parameters. They already were a massive
conditional chain with almost no common logic.

Hard wrap some of the more egregious query lines. Use less duplicated
code for shadowban exclusion.

Only major functionality change which is somewhat related to #476 is
to sort subtrees by Comment.id DESC. Otherwise, upstream is
substantially the same as TheMotte. Given that upstream didn't
experience #476, I think the issue may have been resolved by prior
changes to filtering / comment visibility & moderation.
2023-07-12 00:24:50 -05:00
TLSM
edafe22024 Remove unused reddit mentions notifications
In the distant past, the codebase would check pushshift for keyword
mentions and generate notifications to admins about them. I can't
find where we removed it, but I don't think it was ever operative.

Since these notifications don't get generated, we don't need a
notifications page for them.
2023-07-12 00:24:50 -05:00
sovejero
75950e9466 fix: change logo image to text 2023-07-11 21:46:43 -05:00
Ben Rog-Wilhelm
ccf809406e Rejigger the Mod/Report state system. 2023-07-01 21:06:40 -05:00
Ben Rog-Wilhelm
2f0a3fc278 Terminology change: instead of "banning" comments or posts, remove them. 2023-06-23 22:32:11 -05:00
Ben Rog-Wilhelm
c610c60dc0 Fix: Datetime behavioral issues. 2023-06-23 21:30:19 -05:00
Ben Rog-Wilhelm
5271e7c943 Move 'deleted_utc' into 'state_user_deleted_utc' and change types. 2023-06-23 21:30:19 -05:00
justcool393
e03eef1a12 Add filter approve and filter remove actions to mobile 2023-06-20 05:54:23 -05:00
Ben Rog-Wilhelm
52bcb85950 Clean up remove/approveCommentDesktop2 functions into something a little more comprehensible. 2023-06-16 12:45:29 -05:00
rudyon
063e8087a5
enhancment: Add ~new~ text to the header of new posts (#589) 2023-05-13 11:21:06 -05:00
Ben Rog-Wilhelm
9d264dcf3a Implement mod-viewable janitor-generated badness stats. 2023-04-30 02:08:07 -05:00
justcool393
94e40ff725
unstomp on is_notification_page (#579)
* unstomp on `is_notification_page`

* remove duplicated reply button
2023-04-13 22:35:59 -05:00
justcool393
541af718bb readd mistakenly deleted reply button 2023-04-09 07:16:13 -06:00