Snakes
76fd1342f3
Fix @mention replacement.
...
Comments of the style e.g. "@TLSM / @TLSM2" would mistakenly be
`sanitize`d to have identical links only on "@TLSM", the latter
instance having a dangling 2 on the end. It seems this is purely an
issue with text formatting; alerts.py @ NOTIF_USERS had no such
issues. The root cause appears to be partly an optimization and
partly the use of str.replace without a count limit.
2022-05-20 17:04:36 -04:00
Aevann1
2cfd7c74a0
fds
2022-05-20 21:00:13 +02:00
Aevann1
aed84df4ad
fsd
2022-05-20 20:45:12 +02:00
Aevann1
4f9df8c5bf
sdf
2022-05-20 20:32:36 +02:00
Aevann1
301f134309
fds
2022-05-20 18:02:27 +02:00
Aevann1
a83a72ca95
fsd
2022-05-20 16:51:14 +02:00
Aevann1
f4ac063354
sfd
2022-05-20 16:48:13 +02:00
Aevann1
4a6545ef5d
dfsfds
2022-05-20 16:39:46 +02:00
Aevann1
40dce26a65
Merge branch 'birthgay-staging' of https://github.com/Aevann1/Drama into birthgay-staging
2022-05-20 16:17:11 +02:00
Aevann1
eead5570e5
fsd
2022-05-20 16:17:09 +02:00
Snakes
16e3d3b3e9
Disable tilts on distinguished posts.
2022-05-19 22:27:51 -04:00
Snakes
97bfdc5d3e
Improve readability on header birthgay bg.
2022-05-19 19:15:49 -04:00
Aevann1
8a54215464
Merge branch 'birthgay-staging' of https://github.com/Aevann1/Drama into birthgay-staging
2022-05-20 00:56:55 +02:00
Aevann1
5548160912
fsd
2022-05-20 00:56:53 +02:00
Snakes
ee8c54a8d4
Replace journoid w b-day message, h/t @nekobbbbbbit
2022-05-19 18:48:55 -04:00
Aevann1
f4d5998e80
fsd
2022-05-20 00:38:03 +02:00
Snakes
b7594e2cd2
Merge remote-tracking branch 'upstream/frost' into birthgay-staging
2022-05-19 18:32:17 -04:00
Nekobit
568e32fff5
Birthday Navbar ( #276 )
...
* q
* Update comments.html
* Update comments_v.js
* Baloons.webp
* Birthday bash
2022-05-20 00:31:40 +02:00
Aevann1
0eb39b987c
2022-05-20 00:24:34 +02:00
Aevann1
85bf0ab866
sfd
2022-05-20 00:10:02 +02:00
Aevann1
b3740dca14
gf
2022-05-20 00:00:24 +02:00
Snakes
c789f6923e
Merge remote-tracking branch 'upstream/frost' into birthgay-staging
2022-05-19 17:59:35 -04:00
Snakes
039991dd43
Add birthgay event banner assets, template change.
2022-05-19 17:26:22 -04:00
Snakes
5e85f34d3c
Double XP enabled: actual launch timestamp.
2022-05-19 17:22:55 -04:00
Snakes
b09cad1a84
Swap header icon to :marseyparty:.
2022-05-19 17:16:07 -04:00
Snakes
39c354c3fd
Enable DXP at 2022-05-19 2200Z.
2022-05-19 17:15:39 -04:00
Aevann1
db3ed7961f
idk
2022-05-19 20:36:26 +02:00
Aevann1
e511737702
Merge branch 'frost' of https://github.com/Aevann1/Drama into frost
2022-05-19 19:58:22 +02:00
Aevann1
3e2af45a59
fds
2022-05-19 19:58:18 +02:00
Snakes
ad328ff2d8
Award modal: flairlock note length limit in UI.
...
The award modal note field had a maxLength of 200 characters.
This was retained when repurposing the field for the new flair to be
applied by a flairlock award. However, flairs have a maxLength of 100
characters. award_modal.js now makes this clearer in the UI by
changing the maxLength of note when a flairlock award is picked.
2022-05-19 13:56:04 -04:00
Snakes
69dec16f55
Shop badge discount: fix Spender, add Roller disc.
...
The shop discount from Big Spender badges was incorrectly implemented:
intended behavior was for 2pp per badge. However, the values in
const.py were set as if a user could only have one Spender badge at
once, while user.py @ discount was implemented as if they were
additive. Since users factually do have multiple big spender badges,
the values in const were adjusted to reflect this fact.
Also, lootbox Roller badges now each offer a 1pp discount.
users.py @ discount was improved to check against the `discounts`
keys for appropriate badges, rather than a hardcoded list.
2022-05-19 13:41:04 -04:00
Snakes
0608e0ce9d
Media folder: create, add birthgay, move crab.
2022-05-19 13:09:19 -04:00
Aevann1
44cd7f4a92
fds
2022-05-19 09:49:15 +02:00
Aevann1
f6cf02b210
Merge branch 'frost' of https://github.com/Aevann1/Drama into frost
2022-05-19 09:44:46 +02:00
Aevann1
371c7375c8
fds
2022-05-19 09:44:43 +02:00
Snakes
5500bd4e03
Polls formatting help, minor revision.
2022-05-18 18:04:17 -04:00
Snakes
9ef2d95874
Expand formatting help on polls.
2022-05-18 17:41:01 -04:00
Snakes
289a00c302
Lootboxes: remove notification to Carp.
2022-05-18 17:33:40 -04:00
Aevann1
ef0046f091
fsd
2022-05-18 21:29:07 +02:00
Aevann1
3354363261
dfs
2022-05-18 21:04:06 +02:00
Aevann1
1874c3ffbc
Merge branch 'frost' of https://github.com/Aevann1/Drama into frost
2022-05-18 20:45:05 +02:00
Aevann1
15f0b963c7
fc
2022-05-18 20:45:04 +02:00
Snakes
38680fd38c
Fix user popovers failing from early bs_trigger.
...
Very strange bug, and I hope this fixes it. User popovers, e.g. on
comments pages when names are clicked, spontaneously stopped working
on my local instance. This parallels occasional reports from others
that their popovers stop working for seemingly no reason.
The primary symptom appeared to be in comments+submission_listing.js
@ popclick(...), which became unable to find any `.popover` elements
in the document, resulting in a console error. Running `bs_trigger(
document)` manually in console after page load always fixed this.
As such, I am assuming this is (hopefully) a timing bug from the
bs_trigger call in header.js running before document ready. The call
now runs on a standard document ready callback boilerplate.
May God have mercy on our souls if this doesn't fix it.
I discovered that running `bs_trigger(document)`
2022-05-18 01:46:14 -04:00
Snakes
f0c9a354e9
Implement better double XP infrastructure.
...
Double XP now has a constant for unixtime to start. Logic around
DXP is designed to only apply to votes made after DOUBLE_XP_ENABLED.
This prevents an exploit in the old implementation where spam voting/
unvoting a post made prior to the DXP start could farm 300 DC/hr/alt.
Also it's more maintainable and comports with the coin_delta changes
to prevent self-vote coin changes.
2022-05-18 00:54:05 -04:00
Snakes
b51ab09b27
Lootboxes: re-enable for birthgay, improve.
...
Re-enable lootboxes in const.py, and update their contents in
awards.py. Additionally, improve appearance in shop.
Upon purchasing a lootbox, users now receive a message informing
them of the contents thereof.
Lootbox backend now properly uses CARP_ID (and checks for the
existence thereof correctly).
Also, minor changes to how const.py whitelists awards.
2022-05-17 22:10:04 -04:00
Snakes
8d6e542eaf
Fix shop MBux button wrapping to two lines.
2022-05-17 22:07:07 -04:00
Snakes
f9bfb6ddc6
Update birthgay award descs, ricardo price.
2022-05-17 20:04:16 -04:00
Nekobit
86e90efb90
bump ( #272 )
...
* q
* Update comments.html
2022-05-17 18:23:44 -04:00
Snakes
1434270975
Cache busting comments_v.js (again).
2022-05-17 17:20:37 -04:00
Aevann1
e7e37cd657
Merge branch 'frost' of https://github.com/Aevann1/Drama into frost
2022-05-17 23:09:39 +02:00
Aevann1
0b28758e16
stole testing from mottechads
2022-05-17 23:09:36 +02:00
Snakes
9677f505a4
Cache busting comments_v.js.
2022-05-17 17:01:11 -04:00
DrTransmisia
d3c404a5f5
CTRL + ENTER TO POST LE NEW COMMENT ( #266 )
...
* le shortcut handlers
* le white line as arrived
* Update default.html
Co-authored-by: Aevann1 <59999695+Aevann1@users.noreply.github.com>
2022-05-17 22:44:17 +02:00
Aevann1
c3cce7aaa5
Merge branch 'frost' of https://github.com/Aevann1/Drama into frost
2022-05-17 21:58:43 +02:00
Aevann1
3491c9187d
pls review
2022-05-17 21:58:41 +02:00
HappyDOGE
e7349aec98
Fix <a> tag link injection, don't throw a ValueError when href attr is missing, properly count marseys (their usage wasn't counted for 20 days :marseygasp:) ( #265 )
2022-05-17 20:59:07 +02:00
Snakes
9854ed863f
Revert word filter * 'escapes'.
2022-05-17 14:34:54 -04:00
Aevann1
ea7c4f833a
fg
2022-05-17 18:53:44 +02:00
Aevann1
c80dcaf706
sfd
2022-05-17 18:16:56 +02:00
Aevann1
0e8a2ad1c8
sdf
2022-05-17 18:03:59 +02:00
Aevann1
e0c1e6b4cd
sfd
2022-05-16 22:57:47 +02:00
Aevann1
d560caae8d
sfd
2022-05-16 22:19:29 +02:00
Aevann1
ed7e4c61c1
fds
2022-05-16 21:42:34 +02:00
Aevann1
19863e8c1a
sfd
2022-05-16 21:41:19 +02:00
Snakes
b0957832e8
Revert "Update sidebar: Carp's journo rule."
...
This reverts commit 2a3c70feee
.
2022-05-16 12:38:13 -04:00
Snakes
b6339ca95f
Add exact timestamps to mod log.
...
Modlog only had ModAction.age_string visible. However, we sometimes
need to know the exact time an action was taken.
Adds `created_string` to ModAction, and exposes that to log.html.
2022-05-16 11:33:26 -04:00
Snakes
42e0b77ca7
Add <audio> support to sanitize.py.
...
Parallels the decisions made with <video>.
2022-05-15 18:47:37 -04:00
Snakes
2a3c70feee
Update sidebar: Carp's journo rule.
2022-05-15 14:57:03 -04:00
Aevann1
50b1ed8aa0
fds
2022-05-15 10:45:57 +02:00
Snakes
32416e71fa
Fix /stats distinct user count fields.
...
The COUNT(*) performance optimization in b71ae6cc74
was a bit
overzealous and wound up breaking four fields in /stats intended to
count distinct users who performed certain activities. These fields
were returned to their original implementation.
2022-05-14 17:24:55 -04:00
Aevann1
9df5e30d66
sdf
2022-05-14 19:13:20 +02:00
Aevann1
7278e65362
fds
2022-05-14 16:12:51 +02:00
Aevann1
709e6b75e6
fsd
2022-05-14 16:04:14 +02:00
Aevann1
9df87dc5c6
sf
2022-05-14 15:18:33 +02:00
Aevann1
9dbd9f42e0
fsd
2022-05-14 15:17:57 +02:00
Aevann1
ed0d225554
sfd
2022-05-14 15:11:11 +02:00
Aevann1
caa81452f4
sf
2022-05-13 14:38:14 +02:00
Aevann1
f67860c566
sf
2022-05-13 13:03:44 +02:00
float-trip
9be2264a65
Fix profile CSS on localhost ( #260 )
2022-05-12 16:21:55 +02:00
Absinthe
a829b156d7
#Factcheck Replies ( #262 )
...
Replies for #factcheck.
2022-05-12 16:21:20 +02:00
Absinthe
c3ae481048
#factcheck ( #261 )
...
Like #fortune but to check facts.
2022-05-12 16:21:11 +02:00
Aevann1
3ace8a2606
Merge branch 'frost' of https://github.com/Aevann1/Drama into frost
2022-05-11 19:50:30 +02:00
Aevann1
5efb306822
fds
2022-05-11 19:50:28 +02:00
DrTransmisia
04aefc2462
worst asymptotic behavior ( #259 )
...
* ditched the log search in favor of the polynomial search otherwise poor carp can't search for xis boyfriend marseysamhyde querying "hyde" and instead of properly tag it ["sam", "hyde"] I had to ditch the search alg made in the image of G-d
* le new line
* anton-d on all dramaverse
2022-05-11 19:49:27 +02:00
DrTransmisia
ba1a5358c8
Bussysussy ( #258 )
...
* LE SCHIZOPHRENIC ID HAS ARRIVED :MARSEYCRAZYTROLL:
* other batch of tags
2022-05-11 13:05:32 +02:00
geese-suck
70c61904d9
multi ricardo action
2022-05-10 13:19:55 -04:00
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
Aevann1
a6b26ece67
fsd
2022-04-29 17:19:50 +02:00
Aevann1
e73fcbd56a
sfd
2022-04-29 17:17:14 +02:00
Aevann1
2d4cf226e4
fds
2022-04-29 16:52:00 +02:00
Aevann1
b7ba495555
sfd
2022-04-29 16:48:13 +02:00
Aevann1
08ed7b044b
fds
2022-04-29 16:47:34 +02:00
Aevann1
4ee8d15e2a
fds
2022-04-29 16:47:03 +02:00
Aevann1
6856eb0dd0
sdf
2022-04-29 16:44:21 +02:00
Aevann1
49751bc6d8
fsd
2022-04-29 16:43:21 +02:00
Aevann1
9353f6507c
fds
2022-04-29 16:41:35 +02:00
Aevann1
9ba2593f4f
fsd
2022-04-29 16:39:56 +02:00
Aevann1
01e55c142a
fsd
2022-04-29 16:28:13 +02:00
Aevann1
8d732b8f7b
fsd
2022-04-29 16:02:52 +02:00
Aevann1
ebba5fd9b3
gdf
2022-04-29 15:36:33 +02:00
Aevann1
e5014b4cf4
fsd
2022-04-29 02:02:00 +02:00
Aevann1
0cfb1be47f
Merge branch 'frost' of https://github.com/Aevann1/Drama into frost
2022-04-29 00:03:34 +02:00
Aevann1
ceb03b25bc
gfd
2022-04-29 00:03:31 +02:00
TLSM
3e8e299fb8
Add dynamic journoid banner text. ( #232 )
...
The .srd header banner currently has fixed text. However, there have
been many gayops which have made the news. journoid_banner.html is a
dynamic template which selects a random one to present.
Also, stylesheets and markup for the banner have been unslurred.
2022-04-28 23:58:41 +02:00
Aevann1
be32f091bc
dsf
2022-04-28 03:38:17 +02:00
Aevann1
43563ec143
sfd
2022-04-28 03:02:37 +02:00
Aevann1
8ae52ed35b
dsf
2022-04-28 02:45:49 +02:00
Aevann1
3061801270
fds
2022-04-28 02:44:38 +02:00
Aevann1
47fd1afa91
sfd'
2022-04-28 02:37:12 +02:00
Aevann1
5a689be072
dg4
2022-04-28 02:13:30 +02:00
Aevann1
d961ffc913
fds
2022-04-28 02:04:01 +02:00
Aevann1
d0116ff2f8
sfd
2022-04-28 01:16:24 +02:00
Aevann1
20f925afb7
fds
2022-04-28 01:09:39 +02:00
Aevann1
6db7bd5885
fsd
2022-04-28 00:43:22 +02:00
Aevann1
9499cde2aa
fsd
2022-04-28 00:38:03 +02:00
Aevann1
952fdec513
fds
2022-04-27 18:28:00 +02:00
Aevann1
47978226e1
df
2022-04-27 17:15:41 +02:00
Aevann1
8296a580d1
xcv
2022-04-27 17:09:37 +02:00
Aevann1
583765f259
czx
2022-04-27 17:03:25 +02:00
float-trip
d85951d912
add :@userpat: emojis ( #231 )
...
* refactor emoji formatting
* add user patting
2022-04-27 16:46:47 +02:00
Aevann1
50022797a7
fds
2022-04-27 16:29:32 +02:00
gooseman
967b1b5141
make logo not giant lol
2022-04-26 17:25:06 -04:00
Aevann1
43751ccde2
vdx
2022-04-26 16:18:57 +02:00
Aevann1
5afa0c0d2a
fsd
2022-04-26 16:15:06 +02:00
Aevann1
5a49be1d47
fsd
2022-04-26 15:40:37 +02:00
Aevann1
957c97f2c7
sfd
2022-04-26 15:33:39 +02:00
Aevann1
79c6630285
gf
2022-04-26 15:28:35 +02:00
Aevann1
2f04364f5b
fd
2022-04-26 15:15:01 +02:00
Aevann1
ab83d60730
fds
2022-04-26 15:01:05 +02:00
Aevann1
a11c37f7be
fd
2022-04-26 14:59:28 +02:00
Aevann1
5c1f253e0b
dfs
2022-04-26 02:38:52 +02:00
Aevann1
f9ea51611f
fds
2022-04-26 02:36:03 +02:00
Aevann1
43366f4a28
fds
2022-04-26 02:26:27 +02:00
Aevann1
adf6d4bfee
sdf
2022-04-26 01:03:07 +02:00
Aevann1
ccff08057a
sfd
2022-04-26 01:00:55 +02:00
Aevann1
a895faefe5
fsd
2022-04-26 00:48:28 +02:00
Aevann1
1f7d343ff6
sfd
2022-04-26 00:45:05 +02:00
Aevann1
13166f5ca3
vcx
2022-04-26 00:43:59 +02:00
Aevann1
2d1d946919
vxc
2022-04-26 00:41:34 +02:00
Aevann1
5d8fdef38c
fsd
2022-04-26 00:36:47 +02:00
Aevann1
72346b4e88
fsd
2022-04-26 00:35:27 +02:00
Aevann1
18acaa8dd1
nv
2022-04-26 00:29:35 +02:00
Aevann1
0f05bf3f94
fsd
2022-04-26 00:28:20 +02:00
Aevann1
5c21180705
Revert "vxc"
...
This reverts commit 4d0c7ba456
.
2022-04-25 23:59:12 +02:00
Aevann1
babddb96db
dsf
2022-04-25 23:57:37 +02:00
Aevann1
139a01998b
ti
2022-04-25 23:41:46 +02:00
Aevann1
f306d76373
sfd
2022-04-25 23:16:32 +02:00
Aevann1
09e15a1961
fds
2022-04-25 23:15:02 +02:00
Aevann1
3b3c0927f3
fsd
2022-04-25 23:10:55 +02:00
Aevann1
1b849c57c1
fds
2022-04-25 23:04:50 +02:00
Aevann1
1bdfb1afdf
fsd
2022-04-25 22:31:30 +02:00
Aevann1
836ed4ba91
vxc
2022-04-25 22:07:03 +02:00
Aevann1
9479dc8016
vcx
2022-04-25 22:00:04 +02:00
Aevann1
ad47e9524a
dfs
2022-04-25 21:52:30 +02:00
Aevann1
4bf5a2a3c4
l;k
2022-04-25 21:44:57 +02:00
Aevann1
0ed35ce69f
vxc
2022-04-25 21:42:35 +02:00
Aevann1
4d0c7ba456
vxc
2022-04-25 18:38:06 +02:00
Aevann1
ddbafe7d78
vcx
2022-04-25 17:48:36 +02:00
Aevann1
e60fe0bcd6
gf
2022-04-25 16:51:40 +02:00
Aevann1
94a190a46b
czx
2022-04-25 00:38:24 +02:00
Aevann1
d5a37f475c
czx
2022-04-25 00:35:41 +02:00
Aevann1
d83410a27a
dfs
2022-04-24 23:19:01 +02:00
Aevann1
4a782549c8
dfs
2022-04-24 23:09:21 +02:00
Aevann1
89b49f9337
sdf
2022-04-24 22:52:10 +02:00
Aevann1
0cbd70a8d6
fad
2022-04-24 22:39:37 +02:00
Aevann1
8f1f605877
c
2022-04-24 21:18:19 +02:00
Aevann1
2f14624ffe
vcx
2022-04-24 21:09:36 +02:00
Aevann1
d1a4527e97
fds
2022-04-24 21:04:00 +02:00
Aevann1
b554065c49
vcx
2022-04-24 19:30:05 +02:00
Aevann1
811a8daad9
fds
2022-04-24 19:09:47 +02:00
Aevann1
1db3e0c7ee
Merge branch 'frost' of https://github.com/Aevann1/Drama into frost
2022-04-24 18:25:04 +02:00
Aevann1
6ea487a6e7
fsd
2022-04-24 18:25:01 +02:00
pqpetq
fd80fe6313
fixes and additions ( #230 )
...
* Update posts.py
* Update readme.md
* Update requirements.txt
* Update requirements.txt
Co-authored-by: Aevann1 <59999695+Aevann1@users.noreply.github.com>
2022-04-24 15:22:12 +02:00
Aevann1
457a717075
fds
2022-04-24 00:09:25 +02:00
Aevann1
8dde3965aa
fds
2022-04-24 00:06:45 +02:00
Aevann1
5fd4a0d83d
fds
2022-04-23 01:32:48 +02:00
Aevann1
df046d4677
dsf
2022-04-23 01:31:55 +02:00
Aevann1
ba503e600f
fds
2022-04-23 00:53:24 +02:00
Aevann1
37ecda7872
fds
2022-04-23 00:52:49 +02:00
Aevann1
d026174472
fds
2022-04-23 00:48:01 +02:00
Aevann1
68add1eb36
fds
2022-04-23 00:07:58 +02:00
Aevann1
8b49c6772e
fds
2022-04-22 22:27:24 +02:00
Aevann1
be49ed862f
fds
2022-04-22 22:08:52 +02:00
Aevann1
c447af6f50
fdssfd
2022-04-22 22:02:47 +02:00
Aevann1
e384356b33
fsd
2022-04-22 21:41:37 +02:00
Aevann1
d5453085a4
fds
2022-04-22 21:26:49 +02:00
Aevann1
d97343c5be
fsd
2022-04-22 21:24:28 +02:00
Aevann1
6b02d11238
sfd
2022-04-22 21:23:38 +02:00
Aevann1
e391ef7a29
fds
2022-04-22 21:22:11 +02:00
Aevann1
f6d5fca338
fds
2022-04-22 20:32:11 +02:00
Aevann1
4460fdf5e4
fds
2022-04-22 19:38:55 +02:00
Aevann1
d15d7c7d93
fds
2022-04-22 18:06:34 +02:00
Aevann1
80346a6377
fds
2022-04-22 17:45:26 +02:00
Aevann1
e3b00f6c89
fsd
2022-04-22 17:17:10 +02:00
Aevann1
6b97488355
fds
2022-04-22 17:08:42 +02:00
Aevann1
bc762ff06c
fsd
2022-04-22 17:05:34 +02:00
Aevann1
088d510da6
fsd
2022-04-22 16:51:40 +02:00
Aevann1
f50fa03958
fsd
2022-04-22 16:36:46 +02:00
Aevann1
5c842fdb2a
sfd
2022-04-22 16:20:03 +02:00
Aevann1
5cf645f329
fds
2022-04-22 16:19:27 +02:00
Aevann1
f30b97d513
fds
2022-04-22 16:15:17 +02:00
Aevann1
ac4da7516d
fsdfds
2022-04-22 15:23:56 +02:00
Aevann1
c6252e30e0
fsd
2022-04-22 14:42:40 +02:00
Aevann1
031d9c52e0
fds
2022-04-21 18:10:15 +02:00
Aevann1
1ec4f1375d
fds
2022-04-21 00:56:16 +02:00
Aevann1
88f9ac8aed
fds
2022-04-21 00:55:05 +02:00
Aevann1
9f3654cfbe
fds
2022-04-21 00:19:43 +02:00
Aevann1
017dde4e51
fds
2022-04-20 21:39:56 +02:00
Aevann1
df793e5347
fsd
2022-04-20 21:25:19 +02:00
Aevann1
3e0348833e
fds
2022-04-20 19:34:27 +02:00
Aevann1
cb847ecd4f
hg
2022-04-20 19:13:27 +02:00
Aevann1
ca268c1ac5
fds
2022-04-20 15:55:48 +02:00
Aevann1
74a291e975
fds
2022-04-20 00:24:43 +02:00
Aevann1
cc3788bd8d
fds
2022-04-20 00:23:25 +02:00
Aevann1
5be791e21d
dfs
2022-04-20 00:17:50 +02:00
Aevann1
bd6349d448
Revert "RESTORE CACHE"
...
This reverts commit 3d193357ef
.
2022-04-19 22:22:24 +02:00
Aevann1
3d193357ef
RESTORE CACHE
2022-04-19 22:21:47 +02:00
Aevann1
9f89e8a0aa
fsd
2022-04-19 21:14:09 +02:00
Aevann1
aa498d89c7
gfd
2022-04-19 21:13:36 +02:00
Aevann1
89f336a3bf
sdf
2022-04-19 20:29:08 +02:00
Aevann1
f940f4bcb7
fds
2022-04-19 20:28:19 +02:00
Aevann1
7e033d25b0
dfs
2022-04-19 20:19:43 +02:00
Aevann1
c2815804c9
gf
2022-04-19 20:19:12 +02:00
Aevann1
c60adf958a
sfd
2022-04-19 19:50:13 +02:00
Aevann1
e49889e944
fds
2022-04-19 19:46:51 +02:00
Aevann1
e1e45982fb
fsa
2022-04-18 23:18:02 +02:00
Aevann1
f3743d717d
fds
2022-04-18 23:11:30 +02:00
Aevann1
0705e96770
fds
2022-04-18 20:45:18 +02:00
Aevann1
cf886f13d1
fds
2022-04-18 20:38:26 +02:00
Aevann1
1e49e260cc
fsd
2022-04-18 20:30:25 +02:00
Aevann1
0e74b54424
fsd
2022-04-18 20:25:14 +02:00
Aevann1
521eb16db7
fds
2022-04-18 19:51:39 +02:00
Aevann1
8d268268f1
fds
2022-04-18 19:20:10 +02:00
Aevann1
004795d51f
fds
2022-04-18 19:02:20 +02:00
Aevann1
56377f5bab
fsd
2022-04-18 18:09:44 +02:00
Aevann1
d7fa942d85
fds
2022-04-18 18:01:03 +02:00
Aevann1
743215e2d0
fds
2022-04-18 15:46:45 +02:00
Aevann1
69d285b0f3
fds
2022-04-18 01:00:17 +02:00
Aevann1
c7d3401b62
fds
2022-04-18 00:47:30 +02:00
Aevann1
ad0c050cc3
fdsfd
2022-04-18 00:31:39 +02:00
Aevann1
0f05a76522
fds
2022-04-18 00:16:02 +02:00
Aevann1
8214e2c6f9
fds
2022-04-18 00:13:37 +02:00
Aevann1
d91cb91e07
fsd
2022-04-17 23:59:30 +02:00
Aevann1
a8bff09b9e
fds
2022-04-17 23:59:05 +02:00
Aevann1
15f5216c40
dfsfsd
2022-04-17 23:52:36 +02:00
Aevann1
9c0441aef9
fsd
2022-04-17 23:46:29 +02:00
Aevann1
e06cc3c382
fsd
2022-04-17 23:10:56 +02:00
Aevann1
0fafdc16ff
fds
2022-04-17 23:10:21 +02:00
Aevann1
10984dc92c
fds
2022-04-17 22:29:14 +02:00
Aevann1
264528c72c
cxcxc
2022-04-17 22:28:11 +02:00
Aevann1
456b9af099
fds
2022-04-17 22:26:45 +02:00