Commit Graph

338 Commits (89dbcf19b1a4e142912ef92274ab5bf549ebff34)

Author SHA1 Message Date
Aevann 0db2bc4f9a dont send repeatable notif 2023-05-14 02:45:18 +03:00
Aevann 8d2eca46e4 progstack me 2023-05-12 20:31:23 +03:00
Aevann 6369716aa5 fix import 2023-05-07 22:26:08 +03:00
Aevann b9759f6a97 notify 2023-05-07 22:19:48 +03:00
Aevann 86ee28d024 increase postdropoff and constantize LNTERNETCUSTODIAN_ID 2023-05-06 15:18:26 +03:00
Aevann b350a152bc add SCHIZO_ID 2023-05-04 19:24:22 +03:00
Aevann 3282e07422 dedup some event codde 2023-04-27 14:08:11 +02:00
Aevann 78fd7463d5 birthgay 2023-04-25 17:30:44 +02:00
Aevann 16766981bc DKD 2023-04-25 16:34:09 +02:00
Aevann a37fca393d combined buy button for awards and hats 2023-04-24 17:08:40 +02:00
Aevann 8083042617 force stealth mode on /h/mnn 2023-04-02 18:56:22 +02:00
Aevann 5bc6597188 add 1/1 second ratelimiter for user ids to fix blackjack exploit 2023-04-02 08:52:26 +02:00
Aevann 21d0adae54 fix prev commit 2023-03-31 22:19:35 +02:00
Aevann 231ecef5f2 boost effortposts even more 2023-03-31 22:13:53 +02:00
Aevann 57765f0776 revert sqlalchemy changes 2023-03-16 08:27:58 +02:00
Aevann a392fbb86d restore autoflush 2023-03-16 06:21:57 +02:00
Aevann 3de34c9a65 Merge branch 'keep-session-open' of https://fsdfsd.net/rDrama/rDrama 2023-03-15 08:02:47 +02:00
Aevann 3044499f5e do what slackernews wants 2023-03-15 06:01:33 +02:00
Aevann f768d81103 keep db sessions open 2023-03-15 05:58:00 +02:00
Aevann e45472893a i actually like SRD posts, why did i limit them? 2023-03-15 05:17:56 +02:00
Aevann 563ced8707 boost all sites with "chan" in the domain 2023-03-12 11:10:08 +02:00
Aevann 9f66e33061 Revert "convert IS_FISTMAS and IS_HOMOWEEN from functions to variables"
This reverts commit b45d845630.
2023-03-08 08:51:40 +02:00
Aevann b45d845630 convert IS_FISTMAS and IS_HOMOWEEN from functions to variables 2023-03-08 08:10:18 +02:00
Aevann 984aecec9a destroy the shadow realm (#135)
Co-authored-by: Aevann <randomname42029@gmail.com>
Reviewed-on: rDrama/rDrama#135
2023-02-27 15:38:12 +00:00
Aevann 17bb6dad48 blackjack fix exploit 2023-02-27 07:33:45 +02:00
Aevann fe0b8887bc change 1/second ratelimit to 1/2 second 2023-02-26 12:26:26 +02:00
Aevann 82a73392a9 fix errors 2023-02-26 10:49:09 +02:00
Aevann 8c495c914a default ratelimit doesnt apply implicitly if theres other @limiter.limit before the function, so add it explicity before all functions 2023-02-26 10:41:04 +02:00
Aevann 7aaeedea36 better ratelimiting 2023-02-26 03:42:39 +02:00
Aevann a395c18955 remove unnecessary tabs 2023-02-22 19:27:33 +02:00
Aevann 3ab70d6cd0 remove @darkmarsey from blacklist 2023-02-21 16:37:45 +02:00
Aevann d26c209c75 exclude SRDEnjoyer from algo 2023-02-17 22:56:56 +02:00
Aevann 85587d28cd remove @chiobu from algo ban 2023-02-17 22:13:14 +02:00
Aevann baba929b80 minor fix 2023-02-09 15:49:45 +02:00
Aevann c22ce9b9e0 double coins for WPDcels 2023-02-08 05:36:24 +02:00
Aevann b479a0ac0a boost posts containing specific words (like "effortpost" 2023-01-26 14:41:04 +02:00
Aevann cf27b8bd66 fix 500 error 2023-01-26 08:47:31 +02:00
Aevann c4d3234988 make can_see give 403 error instead of 404 2023-01-25 12:59:45 +02:00
Aevann 1496b12e8f add progstack awawrd to WPD 2023-01-25 12:57:50 +02:00
Aevann 680135755e Revert "get rid of get_alt_graph"
This reverts commit e2e3da4bda.
2023-01-25 04:51:48 +02:00
Aevann e2e3da4bda get rid of get_alt_graph 2023-01-25 03:07:30 +02:00
Aevann 1eb0cdffac add progstack to WPD too (fixed) 2023-01-24 12:05:16 +02:00
Aevann 0a42bde52b Revert "add progstack to WPD too"
This reverts commit 966d6d2161.
2023-01-24 12:02:33 +02:00
Aevann 966d6d2161 add progstack to WPD too 2023-01-24 08:50:09 +02:00
Aevann bdaced6c10 allow admins to apply progstack 2023-01-23 14:40:44 +02:00
Aevann 24edb49f3b add jl5 (for me) 2023-01-22 10:04:49 +02:00
Aevann a40dee5bd8 improve user ratelimiting 2023-01-21 06:39:46 +02:00
Aevann 898ef997f0 boost slackernews 2023-01-03 13:27:43 +02:00
Aevann 044664a25e get rid of useless tabs and spaces 2023-01-01 13:36:20 +02:00
Aevann db6db63836 change event structure 2023-01-01 07:33:09 +02:00
Aevann 03fb84e618 fix HOLIDAY_EVENT check 2023-01-01 04:50:11 +02:00
Aevann 8ee189022b seething hatred 2022-12-30 21:01:47 +02:00
Aevann c4872ecb07 Revert "attempt to fix ratelimiting user"
This reverts commit 99597fc36c.
2022-12-30 20:43:13 +02:00
Aevann 99597fc36c attempt to fix ratelimiting user 2022-12-30 20:40:58 +02:00
Aevann 9a8c986f93 attempt to fix ratelimiting user 2022-12-30 20:33:07 +02:00
Aevann 909e3f5f29 use a cool flask feature i didnt know about 2022-12-29 12:39:10 +02:00
Aevann ec803e1a68 minor syntax change 2022-12-25 02:54:53 +02:00
Aevann 579122f6d4 exclude me from jannie progstack 2022-12-24 00:15:52 +02:00
Aevann 942b5102bb remove forgotten if True 2022-12-23 00:43:03 +02:00
Aevann 9eb285c5ca abort(500) on /votes for shadowbanned nigs 2022-12-23 00:42:44 +02:00
Aevann 31dd061b35 make syntax clearer 2022-12-23 00:36:50 +02:00
Aevann f0eee0aa68 fix 500 error on voting 2022-12-22 22:51:56 +02:00
Aevann 284b3ba9ec delete property that jc forgot to actually define... 2022-12-22 22:46:05 +02:00
Aevann 92cbe64ac0 cache get_alt_graph for 1 hour 2022-12-22 22:44:37 +02:00
Aevann1 b96c0642bd give jannies progstack 2022-12-22 16:08:18 +02:00
Aevann1 fe6fe68e3c fix this https://stupidpol.site/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3276699 2022-12-20 23:30:35 +02:00
Aevann1 f19bbb1c09 double XP 2022-12-19 21:09:51 +02:00
Aevann1 c546412951 fix bug due to bad syntax 2022-12-16 22:40:16 +02:00
Aevann1 ae51fe812a fix 500 error 2022-12-16 22:08:46 +02:00
justcool393 ab41db22b7 [DO NOT MERGE] multiple sub banners (#59)
allows multiple sub banners

Snakes note: By request of Carp, especially for WPD.

Co-authored-by: justcool393 <justcool393@gmail.com>
Co-authored-by: Snakes <duolsm@outlook.com>
Reviewed-on: rDrama/rDrama#59
Co-authored-by: justcool393 <justcool393@noreply.fsdfsd.net>
Co-committed-by: justcool393 <justcool393@noreply.fsdfsd.net>
2022-12-11 23:44:34 +00:00
Aevann1 2258b18566 show the votes button to logged-out niggas 2022-12-11 21:32:30 +02:00
Aevann1 ef4cb46be7 fix voting 2022-12-09 19:11:53 +02:00
Aevann1 601e95ae07 boost all domains that have "forum" in them 2022-12-09 18:42:18 +02:00
Aevann1 cb4d941fd0
add profile wall 2022-12-04 20:05:45 -05:00
Aevann1 da643ea88b sneed 2022-12-04 21:30:33 +02:00
Aevann1 5d3413377d sneed 2022-12-03 20:57:44 +02:00
Snakes b04b7e9269
Fix /votes/ downvote listing display. 2022-12-01 10:15:52 -05:00
Snakes ebc3e9a3f2
Exclude sb'd from vote counts, retain in tables.
Addressing the downvote spamming on WPD. Correctly shows jannies which
users are SB'd, shows all voters (sans SB icons) to SB'd users, and
only shows real voters to normies. SB'd users votes are still tracked
so the icons look to them like they're doing something.
2022-12-01 10:06:16 -05:00
Aevann1 abe07e7754 this is retarded 2022-11-30 13:35:57 +02:00
Aevann 4b8387a01c dont count votes as real if made by alt 2022-11-28 01:16:49 +02:00
Aevann 053ef9fd66 fix error on votes on localhost 2022-11-28 01:16:49 +02:00
Aevann1 a641acaf8f use sets instead of lists in some statements 2022-11-26 06:52:47 +02:00
justcool393 46204ea223 ranking: be site specific when boosting users or excluding users from boosts
otherwise we may unintentionally rank for the wrong users (since we're using literal IDs)
2022-11-25 20:04:09 -06:00
Aevann1 e96274308a sneed 2022-11-26 03:31:17 +02:00
Aevann1 755cfbf335 temp fix to shitting up console 2022-11-23 00:23:04 +02:00
Aevann1 4640abed4b remove hole nerf 2022-11-22 22:25:48 +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 0d6b26d404 sneed 2022-11-21 19:09:04 +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
Aevann1 36a0d48fe6 sneed 2022-11-20 19:21:19 +02: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 f5563900ae
Un-nerf schizohole in rankings. 2022-11-19 21:19:06 -05:00
Aevann1 4eccfeb705 sneed 2022-11-19 18:23:53 +02:00
Aevann1 446ef58c2c sneed 2022-11-18 21:20:17 +02:00
justcool393 83963470e8
user can_view functions (#460)
* user: move can_see_to user class

* stub out can_see in comments and posts

* make can_see a classmethod so it's usable for loggedoutfriends

* test

* kill me now

* threelargeclassesmating

* dfdfdfdfdfdfd

* sdsdsdsd

* classmethod should be above i think

* Revert "classmethod should be above i think"

This reverts commit df1772eb9e7e71bf7b89123f6277b648de2b1af3.

* Revert "Revert "classmethod should be above i think""

This reverts commit 32883406c2e2916fc6c436611376a1817c16cb84.

* test rewritnig thing

* go home python

* what the fuck python

* fix AttributeError

* sdsdsdsdsdsd

* lazy and user and stuff

* test

* Revert "test"

This reverts commit 45af5bb3d45f3ec17126ab117d494ec978062a38.

* merge

* newline

* test

* test 2

* Revert "test"

This reverts commit 196dae677e2ee8cd29261c93dcb747087cb399b6.

* revert test

* fix merge error

* fix import error ciruclation i think

* sdsd

* add type annotations back

* deleted_utc

* isinstance

* user_can_see in jinja and remove unnecessary things

* a bunch of stuff
remove can_see from comment and post
expand can_see to messages

* antiannoyingamountsofwhitespace

* fix for chudrama

* improve prev
2022-11-17 16:02:08 -05:00
Aevann1 62ef32c9c5
Update votes.py 2022-11-16 21:00:18 +02:00
Aevann1 b130139f3d sneed 2022-11-15 16:55:21 +02:00
Aevann1 4dbc4096d3 remove weird variable 2022-11-15 16:45:18 +02:00