forked from rDrama/rDrama
1
0
Fork 0
Commit Graph

15784 Commits (d08cf99b0f7ed636023d9aaa654e30b475dcb592)

Author SHA1 Message Date
Aevann1 bbf6e94584 gfd 2022-05-25 21:10:20 +02:00
Aevann1 d60065d7c4 sfd 2022-05-25 21:04:58 +02:00
Aevann1 85e4a33a7e fsd 2022-05-25 21:03:48 +02:00
Aevann1 49c53cb2ff fds 2022-05-25 20:59:24 +02:00
Aevann1 c213451722 fdsfdsxc 2022-05-25 20:44:43 +02:00
Aevann1 3706d3d22c sdf 2022-05-25 20:36:09 +02:00
Aevann1 386db76c10 crgd is a king 2022-05-25 20:29:22 +02:00
Aevann1 3c691595e5 fds 2022-05-25 19:11:09 +02:00
Aevann1 6febbc4858 scratch that 2022-05-25 19:09:26 +02:00
Aevann1 5b1477acfc certified good commit 2022-05-25 19:01:29 +02:00
Aevann1 b08d374b4b fds 2022-05-25 17:47:15 +02:00
Aevann1 de176280c8 e 2022-05-25 17:42:30 +02:00
Aevann1 162bf9dad7 no more g.timestamp y'all couldn't behave 2022-05-25 17:42:04 +02:00
Snakes da27b16c39 Disable fartmode on non-rDrama sites. 2022-05-25 07:24:34 -04:00
Aevann1 a30df291a4 sneed 2022-05-25 11:14:01 +00:00
Snakes 67796acc11 Fix chat by setting g.timestamp.
The users online count recently added to wrappers.py:get_logged_in_user
uses g.timestamp for its calculations. This is primarily set in
__main__.py:before_request. However, chat has requests which do not
trigger @app.before_request. To resolve this, we now set g.timestamp
in the auth_required wrapper before calling get_logged_in_user().

I think this is safe in general; there's no particular harm to setting
the timestamp _more_ frequently.
2022-05-25 06:49:02 -04:00
Snakes 42d810a5e7 Leaderboard: fix user join for ea48c46b0f.
After ea48c46b0f adds the leaderboard table for most blocked user,
it appeared that the user profile links did not appear correctly.
As such, it was necessary to join on the appropriate information.
This has been (mostly) resolved, excluding the removal of profile
picture because profile_url has logic in Python.

If someone knows SQLAlchemy better than I do, please redo this and
add the profile pictures back into the template. However, I got tired
of fighting with the ORM when I already knew the damn query.
2022-05-25 06:09:13 -04:00
Snakes ea48c46b0f Leaderboard: add 'Most Blocked' hiscores. 2022-05-25 05:24:31 -04:00
Snakes 1c7458e111 Sanitize: modularize normalize_url, fix streamable.
Originally prompted by https://rdrama.net/post/18459/-/1984609 which
noticed that streamable.com/e/ links as posts would have another e/
added to them. This was in spite of logic in posts.py api_is_repost
and submit_post designed to specifically counteract this.
Proximal cause was a copypasta'd url.replace(...) chain which
caused the mistake before the streamable-specific logic had a chance
to avoid making it.

Solution: remove the streamable replacement from the chained statement
and create `helpers.normalize_url(url)` to get rid of the copypasta.
2022-05-25 04:43:16 -04:00
Snakes 3a2c16a696 Userpage: fix display-none on own profile in 8a400a209b.
With the changes in 8a400a209b, a bug was accidentally introduced
which resulted in one's own profile being wrapped in a `display: none;`
block due to a template conditional which caused the mobile
<div id="profile--actionbtns"> to not be closed when v.id != u.id
(cf. userpage.html circa L489).

Because the current conditional structure makes it hard to add an
analogous profile--actionbtns div to mobile, it has been removed.
2022-05-25 03:55:09 -04:00
Snakes 74f8859aa2 Leaderboard: add fixed back-to-top button. 2022-05-25 03:26:33 -04:00
Snakes 8a400a209b Userpage: add id attributes to profile markup. 2022-05-25 03:18:42 -04:00
Snakes f4a5230f21 Leaderboard: add linked table of contents. 2022-05-25 01:24:59 -04:00
Snakes 53a80af241 Restore old agendaposter pfps system, add more.
Restores agendaposter pfps from 1576fcd57d and adds 52-57.
Also restores code in classes/user.py which implements them.
2022-05-25 00:41:23 -04:00
Aevann1 dbab552422 sneed 2022-05-25 04:00:02 +00:00
Snakes d8fa336d78 User counter: replace globe with marseylowpoly.
By direct request of Carp. Also shrunk text slightly to match.
In light of the animated icon, it's plenty visually obvious.
Also, the smaller text reduces instances of unsightly text wrapping.
2022-05-24 23:54:53 -04:00
Snakes bb40bc1c53 User counter: move to sidebar, add flavor.
After much debate, the user counter will remain in the top banner for
all non-rDrama sites using the codebase, while on rDrama the journoid
banner will remain there and the counter has been moved back to the
sidebar. This partially reverts some recent commits.

In addition to the sidebar move, the rDrama user counter now has
random flavor text, much as reddit sidebars do, though ours is
cooler because it can randomly select from a list.
2022-05-24 23:37:25 -04:00
Aevann1 061c4936ce fds 2022-05-25 04:58:26 +02:00
Aevann1 22eed93059 dfs 2022-05-25 04:36:36 +02:00
Aevann1 0b1c86bbe7 fd 2022-05-25 04:29:39 +02:00
Aevann1 41848b0d4e fsd 2022-05-25 04:18:04 +02:00
Aevann1 910f656563 fds 2022-05-25 03:47:30 +02:00
Aevann1 2fd52ce9bd fds 2022-05-25 03:46:41 +02:00
Aevann1 7310c9a1a4 sdf 2022-05-25 03:25:06 +02:00
Aevann1 538a2638ae sfd 2022-05-25 03:23:54 +02:00
Aevann1 b1d57227ff sfd 2022-05-25 03:18:36 +02:00
Aevann1 22ea228dc6 sdf 2022-05-25 03:15:38 +02:00
Aevann1 55bff02309 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-25 03:14:21 +02:00
Aevann1 4e4f667387 journoid 2022-05-25 03:14:18 +02:00
Snakes 7ead30014c Upgrade bleach to 5.0.0. 2022-05-24 20:28:36 -04:00
Aevann1 826f137a5e fsd 2022-05-25 02:22:09 +02:00
Aevann1 1b66095747 dfs 2022-05-25 01:47:28 +02:00
Aevann1 454d5173eb sfd 2022-05-25 01:42:55 +02:00
Aevann1 d9145c76d4 sdf 2022-05-25 01:40:50 +02:00
Aevann1 4f659c093a Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-25 01:26:53 +02:00
Aevann1 b2de1dca52 upload mp3 2022-05-25 01:26:50 +02:00
Snakes 8c3b6cece1 Add 8-ball answers, like fortune & factcheck. 2022-05-24 19:08:41 -04:00
Aevann1 4f02a72d29 fd 2022-05-25 00:43:49 +02:00
Aevann1 1734137dcd sfddsa 2022-05-25 00:29:15 +02:00
gooseman 7ad1030725 Update sidebar_WPD.html 2022-05-24 17:28:16 -04:00