forked from rDrama/rDrama
1
0
Fork 0
Commit Graph

390 Commits (e361ac5ea594d9abd0f3ccd10a33791ca451d4c6)

Author SHA1 Message Date
Aevann1 29070c78a9 fix this and related stuff https://stupidpol.site/h/programming/post/128394/advent-of-code-day-3-i/3182179?context=8#context 2022-12-04 17:53:41 +02:00
Aevann1 c0676e198c convert "var" to "let" and "const" 2022-12-04 17:40:32 +02:00
Aevann1 f28ae7cca1 refresh comment textarea on edit - fixes edge case 2022-12-03 07:27:47 +02:00
Aevann1 d8292b7601 try different approach to opening push notification 2022-12-03 01:47:35 +02:00
Aevann 5c2dab73c7 stop using pusher (#37)
Co-authored-by: Aevann1 <randomname42029@gmail.com>
Co-authored-by: Snakes <duolsm@outlook.com>
Reviewed-on: rDrama/rDrama#37
Co-authored-by: Aevann <aevann@noreply.fsdfsd.net>
Co-committed-by: Aevann <aevann@noreply.fsdfsd.net>
2022-12-02 22:21:18 +00:00
Aevann1 9209cf6036 cachebust service-worker.js 2022-12-02 22:33:47 +02:00
Aevann1 0bc09fe9aa same as last commit 2022-12-02 22:33:08 +02:00
Aevann1 fe07301993 fix service worker 2022-12-02 22:28:49 +02:00
geese_suck a3fa96242c holiday event manager (actually works now edition) (#22)
Co-authored-by: Snakes <duolsm@outlook.com>
Co-authored-by: justcool393 <justcool393@gmail.com>
Reviewed-on: rDrama/rDrama#22
Co-authored-by: geese_suck <deandre.williams@geese-suck.us>
Co-committed-by: geese_suck <deandre.williams@geese-suck.us>
2022-11-29 20:20:26 +00:00
justcool393 6b3fa2f918 table sorting: mitigate chrome bug 2022-11-28 17:11:29 -06:00
justcool393 fc7069ca57 fix bugs introduced by reversion
please test on localhost! thx <3
https://i.imgur.com/Kb3V1Yb.png
2022-11-28 10:34:52 -06:00
Aevann1 2cdfb42c2f revert jc change that broke sorting tables 2022-11-28 06:50:24 +02:00
Aevann1 c9f44b5777 rename data-click to data-click2 2022-11-28 06:35:33 +02:00
Aevann1 48e45332c7 get rid of 'unsafe-eval' 2022-11-28 06:32:03 +02:00
Aevann1 c951325d0e Revert "update pusher.js"
This reverts commit 9e0f3a5a4b.
2022-11-28 06:16:02 +02:00
Aevann1 9e0f3a5a4b update pusher.js 2022-11-28 06:13:15 +02:00
Aevann 4b66e40ca8 same as last commit 2022-11-27 20:50:34 +02:00
justcool393 767cc467bb marseys: cache marseys and emojis and fun stuff (#15)
Co-authored-by: justcool393 <justcool393@gmail.com>
Reviewed-on: rDrama/rDrama#15
Co-authored-by: justcool393 <justcool393@noreply.fsdfsd.net>
Co-committed-by: justcool393 <justcool393@noreply.fsdfsd.net>
2022-11-27 16:59:36 +00:00
justcool393 77bdb6e87f themes: add glitter bg category per joan request 2022-11-27 10:15:15 -06:00
Aevann 6f10140b21 Revert "make awards significantly less retarded (#12)"
This reverts commit 04dbda7f03.
2022-11-27 04:07:45 +02:00
geese_suck 04dbda7f03 make awards significantly less retarded (#12)
Co-authored-by: gooseman <16601315+geese-suck@users.noreply.github.com>
Co-authored-by: geese_suck <16601315+geese-suck@users.noreply.github.com>
Reviewed-on: rDrama/rDrama#12
Co-authored-by: geese_suck <geese_suck@noreply.fsdfsd.net>
Co-committed-by: geese_suck <geese_suck@noreply.fsdfsd.net>
2022-11-27 02:05:12 +00:00
Aevann1 cdac98ae05 fix logout bug 2022-11-26 23:45:39 +02:00
Aevann1 a8c6daa431 fix console error 2022-11-26 07:34:50 +02:00
Aevann1 faf8e4ed2f dude consistency lmao 2022-11-26 01:25:15 +02:00
Aevann1 9c3f520aa7 use snek's formatDate everywhere 2022-11-23 00:36:33 +02:00
Snakes bef9ae8d0c
Fix Twitter embeds (caught in find-replace). 2022-11-21 19:02:23 -05:00
Aevann1 596cf967a2 go back to CRGD's cervix worker 2022-11-21 21:22:02 +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 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 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
Aevann1 9488d3309f small twitter js fix 2022-11-21 16:21:45 +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
Aevann1 3b56712dd8 try offline cervix worker again (YOLO) 2022-11-21 01:40:48 +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 caff8815ee restore pinning to how it was before JC raped it 2022-11-19 17:36:37 +02:00
Aevann1 599729f54a use postToast in delete_post_modal 2022-11-18 23:35:38 +02:00
Aevann1 82579cdb71 use postToast in report_comment_modal 2022-11-18 23:32:48 +02:00
Aevann1 0e10dd6b32 use postToast in delete_comment_modal 2022-11-18 23:27:53 +02:00
Aevann1 4d2a2937e9 fix this https://rdrama.life/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3072105?context=8#context 2022-11-18 22:53:54 +02:00
Aevann1 d73ffaa2eb use a window event listener instead of a loop 2022-11-18 21:41:03 +02:00
Aevann1 ee82ab2072 theres only 1 nav element, why a loop? 2022-11-18 21:40:46 +02:00
Aevann1 78deb9d6f0 make an event listener be on window instead of an element 2022-11-18 21:34:56 +02:00
Aevann1 b4448ae926 remove unnecessary arrow functions 2022-11-18 21:34:38 +02:00
Aevann1 ce24c24e1d put js files not made by us in a folder 2022-11-18 21:16:44 +02:00
Snakes a9eb7bcd57
Fix submission repost link escaping. 2022-11-15 19:28:21 -05:00
justcool393 994ca902ca uploads: fix paste to upload on firefox 2022-11-13 08:16:42 -06:00
Aevann1 5cd354ceb3 fix prev commit 2022-11-12 12:44:13 +02:00
Aevann1 cadc1f507a fix sizing of thin badge in popover 2022-11-12 12:42:11 +02:00
Aevann1 42e40c1691 split off muting and unmuting 2022-11-12 11:11:34 +02:00
Aevann1 239d2e0c27 minor cosmetic fix 2022-11-12 10:16:52 +02:00
justcool393 9be721dcf4 send xhr header so errors don't give back HTML pages 2022-11-11 23:46:21 -06:00
Aevann1 f81205a427 hide poll scores until the user votes 2022-11-11 21:02:57 +02:00
Aevann1 0796a17422 switch from hcaptcha to turnstile 2022-11-11 20:34:06 +02:00
Aevann1 4202187a83 fix console error 2022-11-11 20:32:06 +02:00
Aevann1 80d240a45b show join date on popover 2022-11-11 17:22:10 +02:00
Aevann1 5b274c95c9 expand post-title field when editing 2022-11-11 16:47:51 +02:00
Aevann1 8a8c55ed09 Revert "remove badges from popovers"
This reverts commit 39297b7c22.
2022-11-11 16:25:28 +02:00
Snakes 803ce06712
Sanitize more intermediate values.
Frankly, this is almost entirely speculative. I don't see any viable
exploits through either of these codepaths. But automated tooling
doesn't see the implicit constraints on these values, so might as well
do more sanitization.
2022-11-10 23:17:25 -05:00
Aevann1 170959c071 untick "notify followers" checkbox when "ghost thread" checkbox is ticked 2022-11-09 21:26:38 +02:00
Aevann1 a95d378cf6 perserve status of ALL checkboxes in /submit 2022-11-09 21:25:52 +02:00
Aevann1 380e91e9c4 remove chat stuff not used anymore 2022-11-09 21:06:43 +02:00
Aevann1 4bced848ee same as last commit 2022-11-09 19:31:53 +02:00
Aevann1 78712da50b better quoting behavior 2022-11-09 19:28:50 +02:00
Aevann1 f32e598a64 when u toggle textarea, make it fit the size of text in it 2022-11-09 19:23:21 +02:00
Aevann1 39297b7c22 remove badges from popovers 2022-11-08 15:58:34 +02:00
Aevann1 e773e40a0d style change in settings_css 2022-11-08 06:09:55 +02:00
Aevann1 efe168e2c2 increase max filename from 20 chars to 22 chars 2022-11-08 00:25:39 +02:00
Aevann1 8e3cf6774b Revert "stop removing the last 2 characters of filenames (no clue why this is a thing)"
This reverts commit 530233796c.
2022-11-08 00:21:03 +02:00
Aevann1 530233796c stop removing the last 2 characters of filenames (no clue why this is a thing) 2022-11-08 00:17:11 +02:00
Aevann1 c8a613389b remove/modify js return statements 2022-11-07 12:49:49 +02:00
Aevann1 4b3b52013a remove unnecessary parameter 2022-11-07 08:30:41 +02:00
Aevann1 ce6998bd6e make shadowbanned, banning, chudding from the userpage work without refreshing the page 2022-11-07 08:08:53 +02:00
Aevann1 72e76681b5 remove useless blurp 2022-11-07 08:08:53 +02:00
Aevann1 5be668a049 fix "give award" button not getting grayed-out correctly 2022-11-07 07:41:57 +02:00
justcool393 ddd748b98b fix js and html 2022-11-06 20:06:37 -08:00
justcool393 83fe77c039 settings: implement backend logic for permanent filters 2022-11-06 20:06:37 -08:00
Aevann1 d76fe63c7f constantify image extensions and fix imgur .gif bug 2022-11-05 23:01:23 +02:00
Aevann1 87d5a0de46 improve ban modal and add chud modal 2022-11-05 04:12:22 +02:00
Aevann1 c5c6db70e4 rename "submitFormAjax()" to "sendMessage()" 2022-11-05 04:12:22 +02:00
Aevann1 1b34ef4244 rename "callback" to "extraActionsOnSuccess" 2022-11-04 23:56:08 +02:00
Aevann1 995d3cbc98 add postToastReload 2022-11-04 23:44:44 +02:00
Aevann1 204415c4f8 bug fix 2022-11-04 20:45:52 +02:00
Aevann1 d4a99c05e9 rename postToast -> postToastSwitch and postToastCallback -> postToast for clarity 2022-11-03 21:08:22 +02:00
Aevann1 20fc3e29b2 use postToastCallback in postToast 2022-11-03 21:07:08 +02:00
Aevann1 c2c5e61e60 camelCase 2022-11-03 18:11:11 +02:00
Aevann1 24529678ce same as last commit but for comments 2022-11-03 17:43:00 +02:00
Aevann1 32f079ed20 make post approval and removal effects only happen when response code is between 200 and 300 2022-11-03 17:38:46 +02:00
Snakes fa43317ee2
Revert "Merge pull request #396 from nekobbbbbbit/debooterstrap"
This reverts commit ae1e6b01a4, reversing
changes made to 7e5c1b0ad8.
2022-10-31 18:35:47 -04:00
Aevann1 e3a8f5eda6 disable "give award" button when number of owned selected awards goes to 0 2022-10-31 23:10:04 +02:00
Aevann1 8b95a02ae4 when u unpin a post that's temporarily pinned, both the unpin and pin buttons are hidden, this fixes that 2022-10-30 17:20:11 +02:00
Aevann1 2ba1a1e86e remove postToast compatability function 2022-10-30 17:10:07 +02:00
justcool393 74d3c325d4
Merge branch 'frost' into debooterstrap 2022-10-29 20:07:18 -07:00
justcool393 617d237adc
re-add special character check 2022-10-29 21:57:47 -05:00
Aevann1 227d074da7 remove redundant "noreferrer" 2022-10-29 23:46:35 +02:00
Aevann1 06314f92b1 remove referrer from html tags 2022-10-29 23:42:30 +02:00
Aevann1 907a0cc0d1 don't send referrer to twitter 2022-10-29 23:24:17 +02:00
Aevann1 9d31b8daa4 remove 2 spaces from lite-youtube.js 2022-10-29 23:24:11 +02:00
Nekobit 7e1681e34e
Bump, Responsive login page, use new stylesheet helpers 2022-10-29 14:30:20 -04:00
Aevann1 89b0807b2d don't send referrer to youtube 2022-10-29 20:23:48 +02:00
Aevann1 4a43bc239d remove formatting buttons (useless bloat) 2022-10-28 21:09:56 +02:00
justcool393 548f2613c7 pinprovements 2022-10-25 17:48:10 -05:00
Aevann1 887bb64483 remove forgotten console.log(e) 2022-10-25 15:58:38 +02:00
Aevann1 8e257d2376 fix removing posts 2022-10-25 15:41:49 +02:00
Aevann1 a390f3d917 refactor my prev commit 2022-10-25 00:36:54 +02:00
Aevann1 ae3831efb5 another small js fix 2022-10-25 00:02:44 +02:00
Aevann1 9dd9329c32 small js fix 2022-10-25 00:00:19 +02:00
Aevann1 b2317a4563 pause background music when a video or audio is played 2022-10-24 23:16:41 +02:00
Aevann1 2d0879ec3e allow admins to unmute users from modmail 2022-10-24 22:38:54 +02:00
Aevann1 80eedbd58d more approval/removal refactors 2022-10-23 18:24:23 +02:00
Aevann1 5d846e64c7 same as last commit 2022-10-23 18:24:22 +02:00
Aevann1 25e50be552 same as last commit 2022-10-23 18:24:22 +02:00
Aevann1 9b47ad166b small refactor to approving psots and comments 2022-10-23 17:51:49 +02:00
Aevann1 b83f9bcfb1 fix prev commit 2022-10-23 00:12:46 +02:00
Aevann1 78e1bf9784 clear message field after submitting it 2022-10-23 00:10:36 +02:00
Snakes 333c36f6b7
Update homoween badges, cachebust badges. 2022-10-21 19:57:59 -04:00
Aevann1 25c5c8fb7d better js for follower pages 2022-10-21 00:14:28 +02:00
justcool393 5f16356d7a use showToast in some areas where we weren't before 2022-10-20 15:45:56 -05:00
justcool393 2386a2e04b fix ban and delete modals 2022-10-19 13:00:33 -05:00
Aevann1 457acd43cb decrease the number of owned awards when u give one 2022-10-19 19:54:18 +02:00
Snakes 340ffdff76
Fix error toast on award modal success. 2022-10-16 18:22:00 -04:00
Snakes 1114590cc7
Suppress log on first award modal selection. 2022-10-16 18:14:50 -04:00
Aevann1 c49ae42205 fix for joan 2022-10-14 20:41:03 +02:00
justcool393 85d2994cce pin_post -> pinPost 2022-10-14 11:34:31 -07:00
Aevann1 2411053d55 add tiered pins 2022-10-14 20:28:20 +02:00
justcool393 df1eedc8d9
button1 button2 2022-10-14 11:20:23 -07:00
justcool393 09027e51d7 reply to edit 2022-10-14 08:43:58 -07:00
justcool393 6efb9b41b4 use createXhrWithFormKey in the lottery 2022-10-14 06:07:47 -07:00
justcool393 bb9ab04a90 spaces -> tabs 2022-10-14 06:07:47 -07:00
justcool393 0eaed637be use createXhrWithFormKey in more places 2022-10-14 06:07:47 -07:00
justcool393 f22ef3a7e5 refactor post_toast_callback a bit and create createXhrWithFormKey function 2022-10-14 06:07:47 -07:00
justcool393 6884774906 showToast adjusments so we can use toast 2 and adjust them for ALMOST all of them 2022-10-14 06:07:47 -07:00
justcool393 c12f5ae43a use showToast in most places that we can 2022-10-14 06:07:47 -07:00
justcool393 2dd74d3acd don't constantly check for reposts when it's obvious there can't be one
we currently spam the /is_repost api on every single character change in the URL box even though there is no way these URLs would ever be submitted to the site

introducing a frankly conservative limit to where we start actually pinging both the api and (on the backend) the database for reposts may help in some cases

the current constant was chosen by taking the length of "http://" and adding 2 to it
2022-10-14 03:27:45 -07:00
justcool393 e4cbe4178a tabify 2022-10-14 02:50:39 -07:00
justcool393 29af9dbbf4 move fn 2022-10-14 02:50:39 -07:00
justcool393 7620d8d8cd show the error toast on errors, not the success toast 2022-10-14 02:50:39 -07:00
justcool393 3a11cfd603 rename classname to className 2022-10-14 02:50:39 -07:00
justcool393 b06ee9ac9b refactor of post_toast 2022-10-14 02:50:39 -07:00
justcool393 2559794135 Move stuff we put in bootstrap.js to a new core.js file 2022-10-14 02:50:39 -07:00
justcool393 e511fec4aa i don't know why this committed 2022-10-13 08:15:33 -07:00
justcool393 f7ca9aa248 fix the weird text scrolling bug (hopefully)
* this seemed like an odd floating point bug with scrollTo(), maybe? i think this should fix it
2022-10-13 08:11:47 -07:00
justcool393 ad52c49782 put details EVERYWHERE
why are there 25 of these...
2022-10-12 01:25:32 -07:00
Aevann1 dac9fabccd dont disable the button in the shop (to make buying en masse either) 2022-10-11 20:22:14 +02:00
Aevann1 55eabc0871 give user an error in the UI if they try to submit more than 4 files 2022-10-11 19:13:50 +02:00
justcool393 c0acb1722b abort a bunch of stuff where we manually returned JSON 2022-10-11 08:40:19 -07:00
Aevann1 a20f5723bf make sure all external urls have rel="nofollow noopener noreferrer" 2022-10-10 07:22:18 +02:00
Aevann1 db929c7615 simplify 3 js functions 2022-10-10 06:56:39 +02:00