Commit Graph

15714 Commits (dbcc63ec04cb39308e7e432329ff337c0c8e666a)

Author SHA1 Message Date
Aevann1 dbcc63ec04 sneed 2022-05-26 01:00:02 +00:00
Aevann1 e4893c617e fd 2022-05-26 02:54:05 +02:00
Aevann1 163267c88c Revert "Add Y'all Seein' Eye award."
This reverts commit a0f441a67d.
2022-05-26 02:51:42 +02:00
Aevann1 65388d3e57 sfd 2022-05-26 01:50:13 +02:00
Aevann1 acc4e3503f Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-26 01:46:40 +02:00
Aevann1 32bc1b3c2a afsfds 2022-05-26 01:46:38 +02:00
Snakes a0f441a67d Add Y'all Seein' Eye award.
Adds award to enable viewing profile visitors for non-mops and
non-patrons. This commit should encompass all frontend, backend, and
database changes necessary. Perhaps usable as a model for other
user upgrade flag awards.
2022-05-25 19:44:34 -04:00
Aevann1 a749a7eea9 fds 2022-05-26 01:43:42 +02:00
Aevann1 7c858c6439 fds 2022-05-26 01:42:34 +02:00
Aevann1 b254fd77cb fsd 2022-05-26 01:25:51 +02:00
Aevann1 4859fc7363 fds 2022-05-26 00:26:03 +02:00
Aevann1 987e479aa4 sfd 2022-05-26 00:09:25 +02:00
Aevann1 c8c6ec6eea dsf 2022-05-26 00:08:16 +02:00
Aevann1 1c6ca7c9e0 fds 2022-05-26 00:02:54 +02:00
Aevann1 60058c5130 fsd 2022-05-26 00:02:18 +02:00
Aevann1 6859653e1a sfd 2022-05-25 23:57:38 +02:00
Aevann1 2c67a34047 fsd 2022-05-25 23:55:07 +02:00
Aevann1 27a94797cf fsd 2022-05-25 23:43:30 +02:00
Aevann1 7ff300d0c6 fds 2022-05-25 23:42:50 +02:00
Aevann1 8d1c9d710d fsd 2022-05-25 23:25:23 +02:00
Aevann1 878119d7a2 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-25 23:13:07 +02:00
Aevann1 0f9a207440 fds 2022-05-25 23:13:04 +02:00
Aevann1 86d028ecbe sneed 2022-05-25 21:00:02 +00:00
Snakes 6784ccdd27 loggedin: Order by JL, TS desc. 2022-05-25 16:37:02 -04:00
Aevann1 50b995d3a0 fds 2022-05-25 22:16:26 +02:00
Aevann1 3fbc423336 dfs 2022-05-25 21:48:07 +02:00
Aevann1 195148da1e sfd 2022-05-25 21:45:34 +02:00
Aevann1 94151bf2d6 fsd 2022-05-25 21:45:03 +02:00
Aevann1 c8efa3ade1 sfd 2022-05-25 21:31:39 +02:00
Aevann1 ab7c5dd6bf fsd 2022-05-25 21:16:46 +02:00
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