forked from rDrama/rDrama
1
0
Fork 0
Commit Graph

12255 Commits (969d1898b5e16ce4ed229fa830767cadef6e3b1e)

Author SHA1 Message Date
Aevann1 837d90bfa5 fsdgfdfg 2022-05-10 14:14:28 +02:00
Aevann1 fac797006e sf 2022-05-10 14:14:09 +02:00
Aevann1 09f732d009 sf 2022-05-10 13:40:23 +02:00
Aevann1 3f2eb808b8 fd 2022-05-10 10:07:19 +02:00
Aevann1 db99dd8255 sfd 2022-05-10 09:32:11 +02:00
Aevann1 9bd8fcbd1c sf 2022-05-10 09:20:49 +02:00
Aevann1 b7a2527be9 dg 2022-05-10 06:09:14 +02:00
Aevann1 5ae124d1ca sfd 2022-05-10 04:14:03 +02:00
Aevann1 82a029ef63 sfd 2022-05-10 03:20:37 +02:00
Aevann1 eb803788e7 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-10 03:12:13 +02:00
Aevann1 5d08b9b96e sdf 2022-05-10 03:12:10 +02:00
DrTransmisia 99eeb3ee4b Bussysussy (#256)
* improved static emojis descriptions and file readability

* perf improv. 2

* some minor tweaks

* final tweaks to js and mobile css

* very final
2022-05-10 02:58:57 +02:00
Aevann1 bfc50ee469 sf 2022-05-09 17:29:44 +02:00
Aevann1 421edf92f4 vxc 2022-05-09 16:44:11 +02:00
Aevann1 8fd2002013 dgf 2022-05-09 16:40:27 +02:00
Aevann1 db2a8236db af 2022-05-09 16:07:29 +02:00
Aevann1 45da8f0f35 sdf 2022-05-09 14:15:23 +02:00
Aevann1 c0461f4554 fdsdf 2022-05-09 14:13:38 +02:00
Aevann1 b71ae6cc74 sf 2022-05-09 13:21:49 +02:00
Aevann1 7ddd5ec76a sfd 2022-05-09 11:32:55 +02:00
Aevann1 5fddfae64c sf 2022-05-09 11:08:26 +02:00
Aevann1 71890a2dd1 sfd 2022-05-09 10:47:35 +02:00
Aevann1 051b35a028 sf 2022-05-09 04:16:28 +02:00
Aevann1 edb39d76f8 sfd 2022-05-09 04:15:32 +02:00
Aevann1 cbb76fff0c dgf 2022-05-09 04:15:15 +02:00
Aevann1 e92aebc7d8 sf 2022-05-09 03:42:03 +02:00
Aevann1 f1458c091f sfd 2022-05-09 03:37:50 +02:00
Aevann1 cf91c32c38 sfd 2022-05-09 03:08:49 +02:00
TLSM 607e5c0171 Fix blackjack doubledown & insure using wrong currency. (#253)
In blackjack, the new double-down and insurance features erroneously
always used coins, even when gambling with mbux.
2022-05-09 01:51:00 +02:00
TLSM c7ba75516b Switch to marsey.cat for Snappy /u/. (#251)
* Switch to marsey.cat for Snappy /u/.

camas is down, replacing it with search.marsey.cat.
Note that when looking for existing Snappy comments to test against,
it appears that something else with Snappy generation is broken.

Ex: /post/66263/-/1876803 puts an entire post URL in the author field.
This commit makes no attempt to fix this. TODO for later.

* Fix Snappy body /u/ extracting author from post URL.

Following up on 1137996f0fe7:
Issue was that author was being extracted from post.url, not href.
Given that the relevant code section is specifically for /u/s in the
body text of the submission, this was a problem.
2022-05-09 01:50:39 +02:00
geese 507d4929f7 brasil #1 2022-05-08 13:37:30 -04:00
Aevann1 5f2a20028e sfd 2022-05-08 11:12:20 +02:00
Aevann1 fffdc9e88b sdf 2022-05-08 11:10:39 +02:00
Aevann1 9a7c8f813f sfd 2022-05-08 11:06:01 +02:00
Aevann1 557754d0c3 fsd 2022-05-08 07:56:57 +02:00
Aevann1 1a2869e256 sfd 2022-05-08 07:30:15 +02:00
Aevann1 666870e0a3 fsd 2022-05-08 07:14:24 +02:00
TLSM 6656edeefc Refactor admig logic, fix banners path. (#250)
Made the logic of the recent admig upload thread fixes (arguably)
more Pythonic, or at least less verbose.

Also, the banners path was replaced with a duplicate of the sidebars
path during the copypasta. This has been remedied.
2022-05-08 07:01:49 +02:00
Aevann1 af6d359496 fgd 2022-05-08 06:21:05 +02:00
Aevann1 dd94e3ea84 fds 2022-05-08 06:18:27 +02:00
Aevann1 eafc895724 fsd 2022-05-08 06:17:50 +02:00
Aevann1 9541e3db47 sfd 2022-05-08 06:10:33 +02:00
Aevann1 206a4c81a2 sfd 2022-05-08 06:07:12 +02:00
Aevann1 4cc4f8f14f sfd 2022-05-08 06:01:42 +02:00
Aevann1 f2e66fc280 gd 2022-05-08 05:58:02 +02:00
Aevann1 bf683cf5a2 vxc 2022-05-07 11:23:13 +02:00
Aevann1 04dac94127 fsd 2022-05-07 11:05:33 +02:00
Aevann1 8535ec8958 hk 2022-05-07 10:51:07 +02:00
Aevann1 1431522173 gf 2022-05-07 10:20:22 +02:00
Aevann1 b5abdccff8 sdf 2022-05-07 09:13:52 +02:00
Aevann1 036e61110a sfd 2022-05-07 09:12:59 +02:00
Aevann1 6d95bf04b8 fsd 2022-05-07 09:10:38 +02:00
Aevann1 c06a3b9771 fds 2022-05-07 09:10:18 +02:00
Aevann1 8a5fd22034 sfd 2022-05-07 09:09:46 +02:00
Aevann1 9ac5dc6462 fsd 2022-05-07 08:09:51 +02:00
Aevann1 028563ad7d bgd 2022-05-07 08:04:14 +02:00
Aevann1 1b86af8def fg 2022-05-07 07:28:51 +02:00
Aevann1 f2039d7713 sfd 2022-05-07 06:13:19 +02:00
Aevann1 ca61569b44 nv 2022-05-06 06:55:15 +02:00
TLSM 0447c9c09e Fix remaining emoji-btn clickboxes. (#247)
In line with 1c363303f0, repeat a similar fix for the four remaining
emoji-btns which had wrong clickboxes.
2022-05-06 05:38:20 +02:00
Aevann1 f876092e9e dg 2022-05-06 01:45:41 +02:00
Aevann1 22c2e1240e jh 2022-05-06 01:44:30 +02:00
Aevann1 b84dd88e51 sfd 2022-05-06 00:58:10 +02:00
Aevann1 c5f5342373 sdf 2022-05-06 00:55:34 +02:00
Aevann1 bb43be278b dg 2022-05-05 23:49:27 +02:00
Aevann1 bb515cb0e8 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-05 23:12:11 +02:00
Aevann1 79f3412aae Merge branch 'bussy_refactor' of https://github.com/DrTransmisia/rDrama into frost 2022-05-05 23:12:07 +02:00
TLSM 1137d56de7 Disable chudtexting in quotes. (#245)
Chose to split text into lines because Python regex supports neither
variable-width nor infinite-width negative lookbehinds. This precludes
a simple pure regex solution. Since all replacements are done at the
word level, this has no obvious ill effects.
2022-05-05 22:47:13 +02:00
Doctor Steven Transmisia 640daf9560 html new line 2022-05-05 16:28:57 +02:00
Doctor Steven Transmisia 0243ba4431 amogus sus 2022-05-05 15:58:12 +02:00
Doctor Steven Transmisia da4d1d7281 fogot new line 2022-05-05 15:50:34 +02:00
Doctor Steven Transmisia e526a4fd1c re-factoring emoji system\n\nnow should be less CPU intesive although most of the load seems to come from the img loading itself and it is not address in this commit 2022-05-05 15:47:47 +02:00
TLSM a0cfc7bf1c Add admin status git revision. (#244)
Adds a line in admin_home which displays the currently active git
revision. Current methodology is via manually parsing files in .git.
Consider revising if the application ever has access to `git` shell,
which would obviate some minor security concerns around directory
traversal attacks.
2022-05-05 10:46:20 +02:00
TLSM 110278d87f Add typekit to approved hosts. (#243) 2022-05-05 09:57:34 +02:00
carpathianflorist 902a8fa7e3 minor word filter update 2022-05-05 00:19:59 -04:00
Nekobit 1c363303f0 g (#242) 2022-05-05 04:15:23 +02:00
geese 02928305ed aaa 2022-05-04 21:29:59 -04:00
Aevann1 2008bc76c1 cakedays 2022-05-05 01:31:11 +02:00
Aevann1 6b10d097a2 mn 2022-05-05 01:09:46 +02:00
TLSM 8fb6067701 Fix viewmore on removed post. (#241) 2022-05-05 01:07:45 +02:00
Aevann1 7c88c2e7e5 dgf 2022-05-04 23:42:34 +02:00
Aevann1 c96992f67b fsd 2022-05-04 23:39:11 +02:00
Aevann1 46e391b5a7 fsd 2022-05-04 23:32:30 +02:00
Aevann1 024e5770af fsd 2022-05-04 22:51:56 +02:00
Aevann1 37bd922126 sfd 2022-05-04 05:33:00 +02:00
Aevann1 53702d5f13 dup 2022-05-04 05:14:14 +02:00
Aevann1 a9c86604a0 fsd 2022-05-04 02:54:46 +02:00
Aevann1 93c0bbff60 sdf 2022-05-04 02:47:06 +02:00
Aevann1 29d15769f4 dsf 2022-05-04 02:42:44 +02:00
Aevann1 e70ddb99c5 gf 2022-05-04 02:40:08 +02:00
Aevann1 08f3c88b86 fds 2022-05-03 23:19:24 +02:00
Aevann1 2132703204 fds 2022-05-03 21:59:54 +02:00
Aevann1 a35ef11d77 fds 2022-05-03 21:19:00 +02:00
Aevann1 572b8bcf65 jk 2022-05-03 21:07:57 +02:00
Aevann1 095e5cb0af sanitize 2022-05-03 21:07:15 +02:00
Aevann1 18a4e7b0ca fsd 2022-05-03 07:58:10 +02:00
Aevann1 a31d0598cc fix 2022-05-03 06:59:47 +02:00
Aevann1 5e2da5673c fsd 2022-05-03 06:28:42 +02:00
Aevann1 394244a4cd sfd 2022-05-03 06:09:02 +02:00
Aevann1 db82fdda6e fds 2022-05-03 06:03:19 +02:00
Aevann1 47d01ed00b vb 2022-05-03 04:15:35 +02:00
Aevann1 65b3a5d375 fsd 2022-05-03 03:39:20 +02:00
Aevann1 96ea758ed9 sfd 2022-05-03 03:37:51 +02:00
Aevann1 7b834f2831 fd 2022-05-03 02:13:57 +02:00
Nekobit 94edc2ce52 Fix emojis on freakish browsers & fix buttons (#240)
thx u nekobit
2022-05-02 19:54:10 -04:00
Aevann1 df9585017c dsa 2022-05-02 23:30:03 +02:00
Aevann1 ee0310dd9c Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-02 22:02:24 +02:00
Aevann1 bb33eaf54b sfd 2022-05-02 22:02:22 +02:00
TLSM 8eb86b965c Partially revert self-upvote UI bug fix. (#239)
Turns out the snippet in templates/comments.html was necessary to
get proper behavior in notifications.

Might come back to debug this later, but people use notifications more
than they deal with edge case self-upvotes, so reverting for now.

The changes to prevent coin fuckery with self-upvoting appear to work
correctly in the wild, so leaving those in place.
2022-05-02 21:42:28 +02:00
Aevann1 18509b653a dfg 2022-05-02 21:39:18 +02:00
Aevann1 a6f6e64246 fhg 2022-05-02 21:32:15 +02:00
Aevann1 a8b74fe328 Merge branch 'frost' of https://github.com/Aevann1/Drama into frost 2022-05-02 21:30:15 +02:00
Aevann1 df90e71f20 fsd 2022-05-02 21:30:12 +02:00
carpathianflorist e051ac8b8b Update journoid_banner.html 2022-05-02 15:13:10 -04:00
Aevann1 cd78de4d0b sdf 2022-05-02 21:11:03 +02:00
Aevann1 93ab0a1365 dfg 2022-05-02 21:10:49 +02:00
Aevann1 8b24faf9fd sdf 2022-05-02 20:56:10 +02:00
Aevann1 f9a142a889 sfd 2022-05-02 20:54:53 +02:00
Aevann1 dbe0bf076e tre 2022-05-02 20:50:43 +02:00
TLSM 63d344c2d0 Add badge quantity and rarity to /badges. (#238)
Implements feature request to know how many of each badge exists and
to have a 'rarity', a la Steam or PSN badges, relative to number of
non-lurker users.

Because Postgres `COUNT()`s are notoriously costly, /badges has been
memoized for 1hr to avoid a DOS target.
2022-05-02 20:14:06 +02:00
TLSM 020fe6033c Update journoid banner entries. (#237)
Fix Business Insider URL: was duplicate of LoTT Mashable link.
Add Glenn Beck Program mention.
2022-05-02 20:13:07 +02:00
TLSM d1e2926ca3 Fix comment self-upvote removal UI bug. (#236)
Fixes minor UI bug when removing self-upvote on a comment. Previous
behavior, starting from a new comment:
    - Initial state: score 1 from self-upvote, upvote button shows
      highlighted as `color: var(--primary)`.
    - Click on upvote button to remove self-upvote → button
      unhighlights, score displays as 0.
    - [reload page]
    - Score displays as 0, but button is highlighted.
    - Click on upvote button → button unhighlights, score displays
      as -1. [If you reload the page now, state is score 0 &
      highlighted; no change in serverside votes.]
    - Click on upvote again → button highlights, score displays as 0.
    - [reload page]
    - Score displays as 1, button is highlighted.
Direct cause is `templates/comments.html @ L115-117`. I checked
`api_comment`, though, and it adds a vote on new comments, and that
state change propagates to the template's parameters before it renders,
so I believe the only time this triggers is specifically when a user
has removed their self-upvote. Bug is fixed when testing with L115-117
removed. Is there some other edge case it was meant to solve?

Secondary bugfix: Removing a self-upvote _costs_ you a coin & a
truescore point. I think this is one of the few ways to get negative
dramacoin. I chose to fix it by having self-votes and self-unvotes not
change coins/truecoins. The alternative of having new comments & posts
give the user +1 coin/truecoin would modify site behavior, and you'd
retroactively owe some powerusers thousands of DC & truescore.
2022-05-02 20:12:28 +02:00
Aevann1 60481a175b sfd\ 2022-05-02 20:07:17 +02:00
Aevann1 5eb6491e25 fgd\ 2022-05-02 07:06:43 +02:00
Aevann1 4d7e79bef3 6yutg 2022-05-02 04:11:01 +02:00
Aevann1 c636f08732 sdgf 2022-05-02 04:00:14 +02:00
Aevann1 5a7d019cdd sfd 2022-05-02 03:54:07 +02:00
Aevann1 9eeb214a24 fsd 2022-05-02 03:45:22 +02:00
Aevann1 ccfbbba09a fsd 2022-05-02 03:42:59 +02:00
Aevann1 f59286b202 fsd 2022-05-02 03:41:08 +02:00
Aevann1 53ac9ab777 dfs 2022-05-02 03:06:20 +02:00
Aevann1 6b3987299c sdf 2022-05-02 02:41:00 +02:00
Aevann1 999c16e439 sfd 2022-05-02 02:04:25 +02:00
Aevann1 14ffac7db0 fsd 2022-05-02 02:02:31 +02:00
Aevann1 f3983ab491 sdf 2022-05-02 02:02:19 +02:00
Aevann1 41f08325fa sdf 2022-05-02 01:58:06 +02:00
Aevann1 6619c2f4b2 dfg 2022-05-02 01:55:55 +02:00
Aevann1 ecf20686bb jg 2022-05-02 01:51:47 +02:00
Aevann1 56ea11ea28 sfd 2022-05-02 00:59:28 +02:00
Aevann1 0d08156cf9 fsd 2022-05-02 00:59:08 +02:00
Aevann1 195ea385e3 gfd 2022-05-02 00:56:19 +02:00
Aevann1 94e6eb1ef6 sdf 2022-05-02 00:28:51 +02:00
Aevann1 a4b0565b5a sfd 2022-05-01 23:48:53 +02:00
Aevann1 bc2a20cd4b sfd 2022-05-01 23:44:38 +02:00
outruncolors 0ff7bdc28a Added doubledown and insurance functionality (#235)
* Added doubledown functionality

* Add insurance
2022-05-01 20:24:01 +02:00
Aevann1 039c121055 fds 2022-05-01 02:54:17 +02:00
Aevann1 394402c0c1 fsd 2022-05-01 02:53:24 +02:00
Aevann1 d08a6010c8 dfs 2022-04-29 21:19:54 +02:00
Aevann1 b0384c3647 sfd 2022-04-29 17:58:37 +02:00
Aevann1 aefb322952 fds 2022-04-29 17:22:31 +02:00