forked from rDrama/rDrama
1
0
Fork 0
Commit Graph

17156 Commits (e4b521a63fe56ba000199bf4356c9e45e2544642)

Author SHA1 Message Date
Snakes 0288ce04ba
Convert GIF emoji to actual WEBPs. 2022-11-22 01:15:31 -05:00
SneedBot 8c603e181d sneed 2022-11-22 04:09:26 +00:00
Snakes 9eab252e5b
Fix reply/mention notifications from muted users.
Consider the case of the current /notifications filter condition:
    WHERE ... NOT ((comments.sentto = 2) AND (users.is_muted))

SELECT 1 WHERE NOT ((null = 2) AND (true)); ⇒ 0 rows
SELECT 1 WHERE NOT ((1 = 2) AND (true)); ⇒ 1 row
SELECT 1 WHERE NOT ((2 = 2) AND (true)); ⇒ 0 rows

We want the first expression, where comments.sentto = null, to evaluate
to false, not to null, so it negates to true. Behavior as written is:

SELECT 1 WHERE NOT ((null = 2) AND (true)); →
SELECT 1 WHERE NOT (null AND true); →
SELECT 1 WHERE NOT null; →
SELECT 1 WHERE null;

Which guarantees a null return set. If we check first for non-nullity:

SELECT 1 WHERE NOT ((null IS NOT null) AND (null = 2) AND (true)); ⇒ 1
SELECT 1 WHERE NOT ((1 IS NOT null) AND (1 = 2) AND (true)); ⇒ 1
SELECT 1 WHERE NOT ((2 IS NOT null) AND (2 = 2) AND (true)); ⇒ 0
2022-11-21 23:08:31 -05:00
Snakes 6e1f03f480
Make comment removal UI consistent desktop/mobile. 2022-11-21 20:22:18 -05:00
Snakes b8a3c8ea96
assetcache: include js/vendor dir. 2022-11-21 19:02:39 -05:00
Snakes bef9ae8d0c
Fix Twitter embeds (caught in find-replace). 2022-11-21 19:02:23 -05:00
Snakes adeb7acb38
archive_url: suppress errors on remote failure.
ghostarchive has been giving us 500 backs lately. They are making
an absolute mess of the log for a non-central, opportunistic feature,
and we already eat exceptions for archive.org. We merely extend that
to ghostarchive.
2022-11-21 18:52:21 -05:00
justcool393 272e2ee936
sneed (rename procoins to marseybux) (#472)
* sneed (rename procoins to marseybux)

* literally unusable

Co-authored-by: TLSM <duolsm@outlook.com>
2022-11-21 18:08:29 -05:00
Snakes 9e4c89ad1b
home.html: use sub.name explicitly.
Currently relies on Sub.__repr__ in many cases, which was causing
errors when concatenated. Switched to concatenation using `~` also,
just in anticipation of future errors.
2022-11-21 17:52:38 -05:00
justcool393 9cf1c026b3 remove checks that are needful 2022-11-21 15:51:47 -06:00
justcool393 6ea052b98a roulette: only check greenness where needful 2022-11-21 15:36:38 -06:00
Snakes 94e0e2fb5d
Extend ghost award prohibition to HOUSE_AWARDS. 2022-11-21 16:25:47 -05:00
justcool393 ad55593257 fix prev commit 2022-11-21 15:23:35 -06:00
justcool393 ecb491a83c convert if else to ternary in home.html 2022-11-21 15:22:56 -06:00
justcool393 63c3c9f678 fix prev commit 2022-11-21 15:13:22 -06:00
justcool393 a30dcfb3c3 add missing page title (for meta tag)
@geese-suck are you happy now
2022-11-21 15:13:00 -06:00
justcool393 af8d4b3d41 remove unnecessary set 2022-11-21 14:54:42 -06:00
SneedBot 12e13c240f sneed 2022-11-21 20:21:47 +00:00
justcool393 d7e4754a3c head: fix head with no sub 2022-11-21 14:02:50 -06:00
Aevann1 596cf967a2 go back to CRGD's cervix worker 2022-11-21 21:22:02 +02:00
Aevann1 93f189c03b revert prev commit 2022-11-21 21:13:45 +02:00
SneedBot b09d3538a6 sneed 2022-11-21 19:04:04 +00:00
Aevann1 533a4c6086 try smth real quick, sry sneks and jc, couldnt get deux to work 2022-11-21 21:03:50 +02:00
Aevann1 71a5b763dc make number clearer 2022-11-21 21:02:21 +02:00
Aevann1 e27bebcb06 dont go to /app if ppl click on the X 2022-11-21 20:52:08 +02:00
Aevann1 29452e2e6e dont show annoying popup to PWA users 2022-11-21 20:45:27 +02:00
Aevann1 9668c6729f cachebust manifest 2022-11-21 20:41:38 +02:00
Aevann1 1771f34069 make service-worker work for logged-out-cels and update it 2022-11-21 20:35:12 +02:00
Aevann1 6b00482180 remove leftover pwa js code 2022-11-21 20:31:53 +02:00
Aevann1 087ba467db switch PWAs to minimal-ui and delete and the target _blank js code 2022-11-21 20:30:11 +02:00
Aevann1 3f0966bf03 remove target="_blank" for PWA users 2022-11-21 19:41:40 +02:00
Aevann1 f272989735 Revert "stop adding target="_blank" in the backend and move it to the frontend (to accomodate PWA users) - THANK YOU GEESE I LOVE YOU SO MUCH (#473)"
This reverts commit 88f3cd519d.
2022-11-21 19:37:38 +02:00
Aevann1 a252f94e32 fix frontpage toggles on small screens 2022-11-21 19:31:03 +02:00
Aevann1 0d6b26d404 sneed 2022-11-21 19:09:04 +02:00
Aevann1 2f31fdfdd7 Revert "remove User.newtab and see if anyone complains"
This reverts commit 787c89961f.
2022-11-21 18:55:13 +02:00
justcool393 79b2b5cff8 cookies: set SameSite Lax to get rid of annoying console warning 2022-11-21 09:36:34 -06:00
Aevann1 423418e488 remove stray console.log 2022-11-21 17:32:32 +02:00
justcool393 427d8f643d ratelimiting: use ratelimit_user everywhere 2022-11-21 09:30:27 -06:00
Aevann1 88f3cd519d
stop adding target="_blank" in the backend and move it to the frontend (to accomodate PWA users) - THANK YOU GEESE I LOVE YOU SO MUCH (#473)
* test

* bleg

* remove User.newtab and see if anyone complains (#471)

* fddf
2022-11-21 07:14:26 -08:00
justcool393 f52aec0477 fix betting on 0 2022-11-21 09:13:14 -06:00
justcool393 4d096a5bb6 make roulette cute and valid python syntax 2022-11-21 09:10:41 -06:00
justcool393 9f51259ee6
[DO NOT MERGE] roulette 0 and 00 bets redux (#470)
* backend support for roulette betting on 0 and 00

* casino: roulette: add 0 and 00 frontend

* add spacer

* roulette: fix the thing

* don't payout where needful not to

* sanity check

* roulette: validate requests properly

* roulette actions from API make more sane
2022-11-21 06:44:16 -08:00
Aevann1 787c89961f remove User.newtab and see if anyone complains 2022-11-21 16:36:17 +02:00
Aevann1 9488d3309f small twitter js fix 2022-11-21 16:21:45 +02:00
Aevann1 1de69518be stop forcing posts in /h/chudrama 2022-11-21 16:13:21 +02:00
justcool393 153fb4e2a2
[DO NOT MERGE] titlesssssssssss (#468)
* titles

* testing

* self

* Revert "self"

This reverts commit d6c12d5a5ba125feb44673f55e1fdac75f151cb5.

* Revert "testing"

This reverts commit 86d800f9fd552196b31f0e0b3891d4fc072a9bc0.

* testing on devrama

* rewrite the html head

* reference error or smth idk

* tempalte debug

* template debug redux

* default2

* rename default2 -> root, page title

* fix settings2

* include the set_variables block

* root scope variables 2

* test 3

* remove unnecessary set

* add pagetitles to all settings2 pages

* add pagetitle to casino

* remove bloat

* remove duplicate site name thingy

* page titles 2

* page titles 3

* remove duplicate imports and add page titles everywhere iirc

* ok but actually this time

* remove unnecessary newlines

* fix title lol

* >

* fsdfsfsfsfsfs

* fsfs

* template configurations

* fix 500

* reduce login template bloat

* move files and add status codes where needful

* move authfroms to login

* remove 2fa bloat

* verification code

* sign up fixes

* readability

* fssfsfsfs

* move forgot password to login/

* readability

* don't emit comments

* add page titles where needful

* gsgsgs

* modals: move to respective pages

* testing on devrama

* get home garbage out of title

* remove insane amount of icon duplication

* sign up text

* add votes pagetitle

* fix blank lines

* Revert "fix blank lines"

This reverts commit b2c54339970725d00b6fc82bb458c1757909952c.

* Fix blank lines on sign_up.html.

* title: votes.html more meaningful identifier.

* titles: Lottery, Directory, Notifications

* head final in submission.html

* fix missing comma

* >

* test

* title: /comments

* fsfsfsfsf

* titles: user_cards

* head: only load video and audio meta attributes if they actually exist

* titlessssss: /admin/lottery/participants

* titlessssssss: extra quote in search.html

* titlessssss: userpage voters.

* titties: /h/<sub>/{followers,blockers,exilees[sic]}

* test banner

* Revert "test banner"

This reverts commit c3d875d03f3e60d72a60dab7d28bf108554a5826.

* make submit.html inherit from default.html

Co-authored-by: TLSM <duolsm@outlook.com>
2022-11-21 02:52:22 -06:00
Snakes 3724edbd47
PCM: disable sidebar image (by request). 2022-11-21 01:00:40 -05:00
Snakes 0095012e02
Fix offsitementions erroring on AEVANN_ID.
Also re-wrap the string literals for soft ruler 80, hard ruler 100.
Who are you people who read code with word wrap enabled.
2022-11-21 00:58:17 -05:00
gooseman 4c770c0b87 fix whitespace removal 2022-11-20 20:57:20 -08:00
geese-suck 63fd0bd6ba
make login/signup work on local 2022-11-20 18:28:05 -08:00
Aevann1 cb2fd8e43f increase approve hat ratelimit per minute from 30 to 120 2022-11-21 03:18:02 +02:00
Aevann1 e82d92d844 default response code is 200, dont need to specify it 2022-11-21 03:13:31 +02:00
Aevann1 0c9ed95c55 allow me and sneks to award carp and pizzashill 2022-11-21 03:12:01 +02:00
Snakes 220409c8fb
Fix 62ffe2d628: returning document, must send 200. 2022-11-20 20:11:17 -05:00
Aevann1 62ffe2d628 use postToast in betting so the js deducting coins only execute if responde code is < 300 2022-11-21 03:00:16 +02:00
Snakes 1f234ef67d
Actually call total_bet_voted in betting poll.
Currently always truthy because it's a non-None first-class function.
2022-11-20 19:56:28 -05:00
gooseman 81682c7a28 mdns chads cant stop winning 2022-11-20 16:41:45 -08:00
Snakes 44ef4bc551
search: fix tsquery when quoted unstripped space. 2022-11-20 19:31:27 -05:00
Aevann1 d1078fb977 increase settings icons padding on mobile 2022-11-21 02:28:22 +02:00
Aevann1 15e978eecc fix padding again 2022-11-21 02:25:33 +02:00
SneedBot 4bbbf97f07 sneed 2022-11-21 00:18:59 +00:00
SneedBot 7f50819fbe sneed 2022-11-21 00:04:59 +00:00
Aevann1 2df67c810b fix "toggle anthem" padding 2022-11-21 02:04:50 +02:00
Aevann1 6fbe5405e7 remove useless btn 2022-11-21 01:53:53 +02:00
Aevann1 bc6ff43cf7 fix missing 2 spaces 2022-11-21 01:51:52 +02:00
Aevann1 d9695a3bf0 restore offline.html 2022-11-21 01:50:48 +02:00
Aevann1 7498588c1d remove missing script 2022-11-21 01:45:21 +02:00
Aevann1 3b56712dd8 try offline cervix worker again (YOLO) 2022-11-21 01:40:48 +02:00
Aevann1 0c9d19c7eb add safari and firefox screenshots to /app 2022-11-21 01:31:26 +02:00
Aevann1 ccfc71290d fix 500 error 2022-11-21 01:20:57 +02:00
Aevann1 3b84624eb9 reword PWA begging tooltip 2022-11-21 00:53:14 +02:00
Aevann1 49d0db4411 css fix 2022-11-21 00:44:20 +02:00
Aevann1 6c4a8c44dc give WPD and PCM their own PWA icons 2022-11-21 00:43:06 +02:00
Aevann1 fcdb358a8f css fix 2022-11-21 00:29:10 +02:00
Aevann1 f5f40689a1 remove unnecessary line 2022-11-21 00:22:14 +02:00
Aevann1 caabaf0c6f expand IS_LOCALHOST 2022-11-21 00:16:49 +02:00
Aevann1 35f6b39d27 build imagemagick from source again 2022-11-20 23:35:09 +02:00
Aevann1 da34a099a3 fix 500 errors 2022-11-20 21:05:32 +02:00
Aevann1 6b7b2ff59a show only permachudded users in /chuds 2022-11-20 19:37:45 +02:00
Aevann1 36a0d48fe6 sneed 2022-11-20 19:21:19 +02:00
Aevann1 d354a86cbb fix 500 errors 2022-11-20 19:00:05 +02:00
Aevann1 0baa32e6eb fix this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3107571?context=8#context 2022-11-20 18:55:26 +02:00
Aevann1 f62a9769fd fix annoying 500 errors 2022-11-20 18:46:15 +02:00
Aevann1 71807f7a27 fix toggle anthem bottom padding on own profile 2022-11-20 18:43:16 +02:00
Aevann1 bb8877a5d3 dont send me offsitemention notifs 2022-11-20 18:33:16 +02:00
justcool393 a2c4bca2da polls: don't allow bets on closed polls 2022-11-20 10:11:47 -06:00
Snakes 23ff5450d6
Rename ranking constant by Capy request. 2022-11-20 06:31:16 -05:00
Snakes db329f487f
User.pay_account everywhere, fix lottery payout. 2022-11-20 05:50:02 -05:00
Snakes 858ccab4ec
Fix userpage profilecss precedence, load order. 2022-11-19 21:19:06 -05:00
Snakes f5563900ae
Un-nerf schizohole in rankings. 2022-11-19 21:19:06 -05:00
SneedBot 01ce9b267d sneed 2022-11-20 01:45:02 +00:00
Snakes 6688311ac0
Fix submission report toggle with post_meta. 2022-11-19 19:10:35 -05:00
Aevann1 ddf2a3cf51 make new-user hat be 7 days 2022-11-20 00:48:24 +02:00
Aevann1 b40bc5ae79 add 's 2022-11-20 00:47:25 +02:00
Aevann1 eb83389530 fix mobile app icon 2022-11-20 00:46:19 +02:00
Aevann1 e0badfef00 fix "toggle anthem" button on ur own profile 2022-11-20 00:44:10 +02:00
Aevann1 aa205652fe shorter title in app.html 2022-11-20 00:25:00 +02:00
Aevann1 68d42fc6a7 make the app page use WPD and PCM screenshots 2022-11-20 00:22:05 +02:00
justcool393 eafae40aca titles: fix all titles where needful 2022-11-19 16:20:52 -06:00
gooseman c9064fbedc Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost 2022-11-19 14:18:22 -08:00