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
3542703ced
Revert "make it so only the post author can declare winner and not all admins"
...
This reverts commit 9e1425d93e
.
2022-12-03 00:08:46 +02:00
Aevann1
9e1425d93e
make it so only the post author can declare winner and not all admins
2022-12-03 00:06:57 +02:00
Snakes
15dc9c4cf7
Ensure eg log created if not exists.
2022-12-02 15:35:15 -05:00
Aevann1
ecc32382b2
Revert " https://www.youtube.com/watch?v=_904EvOUQ_M "
...
This reverts commit 6d0277adc8
.
2022-12-02 00:37:50 +02:00
Snakes
27506b36c2
Fix unbound ORM object erroring during 500 handler.
...
The 500 fixed in 71738b05fc
revealed that attempting to access g.v at
all during an error handler can potentially cause its own error.
In particular, html_head L111 accessing v.themecolor errored because
we roll back the database session during 500 handling. There's no good
solution other than specifically not passing v to 500 error pages.
However, in the interest of failing fast and ensuring error handlers
always complete, we instead go back to the previous behavior of not
treating users as logged in for error pages.
2022-12-01 17:24:41 -05:00
Snakes
71738b05fc
Fix 500 on all non-holed post submissions.
2022-12-01 17:12:57 -05:00
justcool393
0f2f72f2c3
sort by new button ( #34 )
...
also get rid of megathread logic
do the needful and do
```sql
UPDATE submissions SET new=true WHERE title LIKE 'Thread' OR title ILIKE 'megathread';
```
or whatever the proper equivalent is
Co-authored-by: justcool393 <justcool393@gmail.com>
Reviewed-on: rDrama/rDrama#34
Co-authored-by: justcool393 <justcool393@noreply.fsdfsd.net>
Co-committed-by: justcool393 <justcool393@noreply.fsdfsd.net>
2022-12-01 22:04:10 +00:00
Aevann1
e125443d50
make Thread (upper case) sort comments by new, around 20% false positive rate but worth it
2022-12-01 19:49:26 +02:00
Aevann1
6d0277adc8
https://www.youtube.com/watch?v=_904EvOUQ_M
2022-12-01 19:07:14 +02:00
Aevann1
3308734dc7
dont auto-pin if post sub is stealthed
2022-12-01 18:22:33 +02:00
justcool393
fe55c2383c
fix 500 on 500
2022-12-01 10:10:05 -06:00
justcool393
c05a9f335b
Revert "Revert "errors: don't do anything with the user""
...
This reverts commit 3e2ca53f2a
.
2022-12-01 10:07:59 -06: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
3e2ca53f2a
Revert "errors: don't do anything with the user"
...
This reverts commit b7a24f6fa1
.
2022-12-01 14:58:32 +02:00
Aevann1
845e13b4ae
minor bug fix
2022-12-01 14:27:15 +02:00
Aevann1
45a36ed726
kofi - order_by not needed anymore
2022-12-01 03:26:47 +02:00
Aevann1
6e6bd81872
better kofi claiming
2022-12-01 03:24:41 +02:00
Aevann1
f5f660efa9
add logged-out chromium instructions for installing PWA
2022-12-01 01:14:29 +02:00
Aevann1
7f4691c79d
fix prev commit
2022-12-01 00:33:41 +02:00
Aevann1
e1ed46fa36
rework reddit notifs - testing on pcm lol
2022-12-01 00:29:13 +02:00
Aevann1
87ae34966b
badge perm shit
2022-11-30 23:15:10 +02:00
justcool393
b7a24f6fa1
errors: don't do anything with the user
...
this is an evil context to have a user in do not change this
or i will find you whatever country you're from
2022-11-30 13:07:29 -06:00
justcool393
46f2b805ef
config: fix _SETTINGS dict and stray signups
2022-11-30 13:03:46 -06:00
justcool393
69a44baea7
settings: convert all to snek_case
2022-11-30 12:26:07 -06:00
justcool393
d395bcab69
logging: create somewhat sane logging
2022-11-30 12:09:31 -06:00
justcool393
0106a4e340
antispam: under siege mode
2022-11-30 11:37:35 -06:00
justcool393
b59e4cadaa
login: don't allow logged in users to attempt to login
2022-11-30 10:49:15 -06:00
Aevann1
836d3bfd98
include v in errors if possible
2022-11-30 15:21:12 +02:00
Aevann1
abe07e7754
this is retarded
2022-11-30 13:35:57 +02:00
justcool393
c0f1b875d0
chat: ratelimit chat lol
...
apparently we haven't done that xdd
2022-11-29 19:36:09 -06:00
justcool393
c315a2a259
amend previous
2022-11-29 19:31:28 -06:00
justcool393
883be4019c
kofi: fix kofi 500
2022-11-29 19:30:33 -06:00
justcool393
db31fc17de
ratelimits: turn off autocheck so we can init
...
required app context globals
2022-11-29 19:29:06 -06:00
justcool393
f2411415dd
fix missing required context variables on 429 and remove flex tape
2022-11-29 19:12:43 -06:00
justcool393
20459a59dd
flex tape patch
2022-11-29 18:06:16 -06:00
Aevann1
de8a45412b
fix /icon.webp
2022-11-30 01:56:11 +02:00
justcool393
11059d1665
move calc users to context processor ( #31 )
...
jinja more like i can't think of anything witty
Co-authored-by: justcool393 <justcool393@gmail.com>
Reviewed-on: rDrama/rDrama#31
Co-authored-by: justcool393 <justcool393@noreply.fsdfsd.net>
Co-committed-by: justcool393 <justcool393@noreply.fsdfsd.net>
2022-11-29 23:50:32 +00:00
Aevann
9893ede920
fix browserconfig.xml ( #30 )
...
Co-authored-by: Aevann1 <randomname42029@gmail.com>
Reviewed-on: rDrama/rDrama#30
2022-11-29 23:19:03 +00:00
Snakes
9fcdd65d38
PCM: improve Kippy's inflationary ergonomics.
2022-11-29 17:18:33 -05:00
justcool393
65236df78a
don't read multiple times etc
2022-11-29 16:11:07 -06:00
justcool393
80466f3150
chat: fix cache commit and stuff idk
2022-11-29 16:02:43 -06:00
justcool393
5056f09380
chat: fix 500 on some... weird... state... i think?
...
cache: get out of jinja templates
chat: threshold is now a const
2022-11-29 15:49:23 -06:00
Snakes
0dd7809b49
Sort banned_domains deterministically.
2022-11-29 16:24:13 -05:00
justcool393
03e7b4c6a2
events: initialize event_v properly
2022-11-29 14:35:28 -06:00
justcool393
67bfe5a5bd
remove unnecessary `str()`
2022-11-29 14:29:27 -06: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
Aevann1
ed5b3dc4bb
remove ruckus.webp
2022-11-29 07:25:17 +02:00
justcool393
c47dae86ec
remove unused g attribute
2022-11-28 21:51:36 -06:00
Snakes
c762c84bde
worldcup2022: retain backwards compat on URL.
2022-11-28 22:39:51 -05:00
Aevann1
3e42918afb
minor background dedup
2022-11-29 05:37:56 +02:00
Snakes
d6680a29a3
Rename events.py and related to 'special'.
...
For @geese-suck's namespace conflict.
2022-11-28 22:36:20 -05:00
Aevann1
bf1da34dae
Revert "marseys table is way way too large to use javascript for sorting, you would've known that if u had tested"
...
This reverts commit fe0da05415
.
2022-11-29 05:22:59 +02:00
Snakes
2304876348
Fix emoji search after Marsey caching revert.
2022-11-28 22:18:16 -05:00
Aevann1
261abe3161
archives - add additional route for ease of use
2022-11-29 05:08:26 +02:00
Aevann1
8182be4730
minor syntax change for no reason
2022-11-29 03:53:30 +02:00
Aevann1
ff2503ce4b
fix 500 error
2022-11-29 03:47:54 +02:00
Aevann1
be8be13a01
move pinned comment ordering to SQLAlchemy
2022-11-29 02:04:06 +02:00
Aevann1
c0d91c9e71
fix last commit (i cant do this without coffee help me)
2022-11-29 01:48:16 +02:00
Aevann1
b6c45c4208
make going to the reddit version of archived posts easier
2022-11-29 01:45:52 +02:00
Aevann1
3d1c16044a
use abort instead of sending raw text lol
2022-11-29 01:38:41 +02:00
justcool393
8506c46306
wpd: remove special front page logic
2022-11-28 16:55:16 -06:00
Aevann1
f15350b2a8
fix subreddit links in archives
2022-11-29 00:12:39 +02:00
justcool393
fbcd089852
fix rare 401-302-401-302-429 loop
2022-11-28 13:41:08 -06:00
Snakes
a6d933333a
worldcup2022: don't double count wager on win.
2022-11-28 08:20:32 -05:00
Aevann1
3183e0a28e
dont allow ppl to use transparent theme without background
2022-11-28 08:11:07 +02:00
Aevann1
fe0da05415
marseys table is way way too large to use javascript for sorting, you would've known that if u had tested
2022-11-28 06:59:35 +02:00
Aevann1
0fd8157fa6
move CSP to nginx-level
2022-11-28 04:19:59 +02:00
Aevann1
4656fa0b8d
pin posts by pizza/impassionata/TGTW automatically for 1 hour
2022-11-28 04:07:06 +02:00
Aevann1
e8b4ef24ea
restore loop.index in voters.html
2022-11-28 03:52:58 +02:00
Aevann1
1475383549
fix stray piece of code i used in testing
2022-11-28 03:50:00 +02:00
Aevann1
89816775aa
fix 500 error ????
2022-11-28 03:48:53 +02:00
Aevann1
73a78f0e97
add pagination to simps/haters/simps for/hates lists and remove loop.index
2022-11-28 03:45:20 +02:00
Aevann1
d0047dcc5a
include users who have more than 30 days to be unbanned/unchhuded in /banned and /chuds for accountability
2022-11-28 03:32:01 +02:00
Aevann
ca8c8297c5
sort pinned top-level comments by most recent first
2022-11-28 01:16:49 +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
Snakes
8eb50d8bf9
worldcup2022: add winnings column to leaderboard.
...
There is probably a more compact way to write this SQL. I don't know
what it is. But it works and should be reasonably efficient.
2022-11-27 18:05:08 -05:00
Aevann
5d49821e7a
use https whenever u can
2022-11-28 00:53:37 +02:00
Snakes
7551add5d8
Unify admin badge page listings source.
2022-11-27 17:02:18 -05:00
Snakes
427f54175c
WPD: constantify badge whitelist, extend set.
2022-11-27 16:49:20 -05:00
justcool393
0c9d0d1bcd
world cup leaderboard 2022 ( #23 )
...
insert witty PR message here
a temporary lb for worldcup stuff
Co-authored-by: justcool393 <justcool393@gmail.com>
Reviewed-on: rDrama/rDrama#23
Co-authored-by: justcool393 <justcool393@noreply.fsdfsd.net>
Co-committed-by: justcool393 <justcool393@noreply.fsdfsd.net>
2022-11-27 19:59:53 +00:00
justcool393
5a1224ddc7
fix shadowbanned and nonexistent users in marseys table
2022-11-27 11:13:23 -06: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
d45fd6e645
fix designed hats being duplicated
2022-11-27 03:45:28 +02:00
Aevann1
4e4e649dc9
remove carp exception in /followers since we have pages now
2022-11-27 03:27:06 +02:00
Aevann1
c42a0e6a20
Revert "Revert "Revert "fix session bug" - pls for the love of god visit localhost after making a commit""
...
This reverts commit e6a328fc3a
.
2022-11-27 03:01:02 +02:00
Aevann1
84b6f43cf6
Revert "fix missing loggedin_counter and loggedout_counter"
...
This reverts commit 14828bd9f4
.
2022-11-27 03:00:32 +02:00
Aevann1
a46b62db0b
add pages to /followers /following /blockers and order them all by most recent first
2022-11-27 02:59:20 +02:00
justcool393
14828bd9f4
fix missing loggedin_counter and loggedout_counter
2022-11-26 18:55:26 -06:00
justcool393
e6a328fc3a
Revert "Revert "fix session bug" - pls for the love of god visit localhost after making a commit"
...
This reverts commit b7efa6ddd3
.
2022-11-26 18:45:12 -06:00
Aevann1
b7efa6ddd3
Revert "fix session bug" - pls for the love of god visit localhost after making a commit
...
This reverts commit fcdad601fb
.
2022-11-27 02:43:10 +02:00
Aevann1
395e136cd4
order user blocks by most recent first
2022-11-27 02:36:09 +02:00
justcool393
ffb79a1bb2
literally one line lmao
2022-11-26 18:33:55 -06:00
justcool393
fcdad601fb
fix session bug
2022-11-26 18:33:04 -06:00
Aevann1
a44bc53f3a
limited designed hats loserboard to rdrama.net
2022-11-27 02:27:33 +02:00
Aevann1
575a5080bd
unpaywall profile views
2022-11-27 02:20:54 +02:00
Aevann1
61612e7be3
fix missing "+ 1"
2022-11-27 02:19:50 +02:00
Aevann1
641926b425
restore diff messages to debug an issue
2022-11-27 02:16:08 +02:00
Aevann1
daa9d9c80b
Revert "calc users: log so we can find the root of this problem"
...
This reverts commit ba6e4721d3
.
2022-11-27 01:10:38 +02:00
Aevann1
14b2b9328a
Revert "don't want to crash on our precious logging code"
...
This reverts commit 992e4a0d1c
.
2022-11-27 01:08:44 +02:00
Aevann1
27bb38c0d5
Revert "the request is prolly boned anyway, let's help friends help me :)"
...
This reverts commit cfffbc61a0
.
2022-11-27 01:08:27 +02:00
justcool393
a56633c3b1
api: manual revert of e1f785c370
(by @Aevann1's request)
2022-11-26 15:25:00 -06:00
justcool393
6c5070f24d
fix 155a5b40c9
2022-11-26 15:19:10 -06:00
Aevann1
155a5b40c9
excise niggabit's solution for now
2022-11-26 23:04:42 +02:00
justcool393
0ff034b01b
add typing to a bunch of routes
2022-11-26 15:00:16 -06:00
Aevann1
15c7add942
fix bug
2022-11-26 22:54:17 +02:00
justcool393
19b73f8e7e
api: fix some missing imports
2022-11-26 14:46:49 -06:00
justcool393
e1f785c370
Merge branch 'docs' into 'master'
2022-11-26 14:40:32 -06:00
justcool393
ae50cc2772
const: rename constants from LIMIT to MINIMUM
...
the new name is much much clearer
2022-11-26 14:20:44 -06:00
Aevann1
bb153e541d
Revert "you posts: constantify truescore requirement"
...
This reverts commit 1b721126a2
.
2022-11-26 22:09:07 +02:00
justcool393
1b721126a2
you posts: constantify truescore requirement
2022-11-26 13:39:31 -06:00
Aevann1
d624dbe2de
fix this https://rdrama.net/post/125682
2022-11-26 08:11:00 +02:00
Aevann1
8a80616f84
insanely ghetto solution to long back-and-forth chains in notifs
2022-11-26 07:52:37 +02:00
Aevann1
4eb66e5802
fix login redir bug
2022-11-26 07:38:59 +02:00
Aevann1
a641acaf8f
use sets instead of lists in some statements
2022-11-26 06:52:47 +02:00
Nekobit
f59f641331
Merge branch 'docs' of fsdfsd.net:nekobit/rDrama into docs
2022-11-25 23:31:49 -05:00
Nekobit
dea8c3f7e3
docs: Remove unneccesary imports; @auth_desired
2022-11-25 23:30:49 -05:00
Aevann1
b3c47f5598
tell ppl how much Truescore they need to see /h/chudrama
2022-11-26 06:22:09 +02:00
Aevann1
bcbf524fbe
make sure stickied child comments are always at the top place they can be
2022-11-26 06:01:20 +02:00
justcool393
cfffbc61a0
the request is prolly boned anyway, let's help friends help me :)
2022-11-25 20:57:24 -06:00
justcool393
992e4a0d1c
don't want to crash on our precious logging code
2022-11-25 20:22:55 -06:00
justcool393
ba6e4721d3
calc users: log so we can find the root of this problem
2022-11-25 20:21:38 -06: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
5523747c3a
fix 500 error
2022-11-26 04:02:41 +02:00
Aevann1
bf72234873
remove SITE url from badge urls to make them relative in the event of a future domain change
2022-11-26 03:45:20 +02:00
Aevann1
e96274308a
sneed
2022-11-26 03:31:17 +02:00
justcool393
35b1532bb4
admin: remove meme admin vestige
2022-11-25 19:15:39 -06:00
Aevann1
5e2f449df7
fix prev commit lol
2022-11-26 01:52:39 +02:00
Aevann1
c470cb7516
make shit award not give DC
2022-11-26 01:50:25 +02:00
Aevann1
642d19b861
move ratelimit_user after auth
2022-11-26 01:37:04 +02:00
Aevann1
bf4031c832
remove annoying excalmation sign in notifs
2022-11-26 01:18:24 +02:00
Nekobit
2e1d2cb774
Merge branch 'master' into docs
2022-11-25 22:27:15 +00:00
justcool393
7e403469cd
polls: constantify max poll options
2022-11-25 16:12:25 -06:00
justcool393
f86d351ac4
fix saved subscribers stuff
2022-11-25 16:06:18 -06:00
Aevann1
e4b521a63f
limit polls to 10 options to prevent spam
2022-11-25 23:33:38 +02:00
Aevann1
2938f930fd
make me not see modmail, if its important the other jannies will tell me
2022-11-25 22:56:11 +02:00
Nekobit
af4411b0d7
Documentation page
2022-11-25 15:36:29 -05:00
justcool393
0356c589a4
api: don't hit calc_users if this is the API
...
sometimes we render HTML where we probably... shouldn't. in most cases
this is fine, but if API clients hit it it can errenously set
2022-11-25 14:31:07 -06:00
justcool393
23505c68b3
errors: use abort for sign up errors
2022-11-25 12:27:18 -06:00
justcool393
816389cf28
security: fix DoS on title getter
...
the `timeout` parameter only applies to seconds per *byte* received (and time to first
byte), not the entire request
this means an attacker could theoretically send a very... slow...
stream... of... bytes... and... crash... the... worker... when... the...
timeout... is... reached...
2022-11-25 07:10:05 -06:00
Snakes
af7df7f62d
Ensure all entry points get sessions.
...
Somewhat speculative, but the change in f62a9769fd
, while fixing
certain errors where logged-out users sometimes didn't have sessions
come calc_users, also opened the possibility of certain request
sequences that wouldn't give a user a session.
In the interest of conservatism, we create a session if not exists
in both the new location in calc_users and the previous spot in
before_request.
2022-11-22 18:37:55 -05:00
Aevann1
755cfbf335
temp fix to shitting up console
2022-11-23 00:23:04 +02:00
Aevann1
9e89166e2f
restore reload icon for legacy app users
2022-11-22 23:34:33 +02:00
Aevann1
e198102383
repurpose "upvoted" to "voted"
2022-11-22 23:28:30 +02:00
Aevann1
4640abed4b
remove hole nerf
2022-11-22 22:25:48 +02:00
justcool393
6acd896967
sbs: since propagation isn't optional anyway, let's propagate on a ban to get their alts
2022-11-22 09:51:44 -06:00
Aevann1
0b1f166211
remove "alts" checkbox for shadowbanning since shadowbans propagate anway via check_for_alts()
2022-11-22 17:44:16 +02:00
justcool393
b0ff8916a5
win loss stats to casino games ( #475 )
...
* casino: add stats to casino
* casino: stats should target the right thing
casino: properly style
* pluralize properly
* refactor casino leaderboards :marseytroublemarker:
* fsfsdsd
* fsdsdsdsd
* i'm r-slurred
* -
2022-11-22 07:11:01 -08:00
justcool393
007e41e7d0
security: validate YouTube link IDs
2022-11-22 06:13:44 -06: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
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
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
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
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
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
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
Snakes
44ef4bc551
search: fix tsquery when quoted unstripped space.
2022-11-20 19:31:27 -05: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
caabaf0c6f
expand IS_LOCALHOST
2022-11-21 00:16:49 +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
f62a9769fd
fix annoying 500 errors
2022-11-20 18:46:15 +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
f5563900ae
Un-nerf schizohole in rankings.
2022-11-19 21:19:06 -05:00
Aevann1
5288d7a7dc
remove android app and replace with instructions on how to install PWA
2022-11-20 00:04:08 +02:00
Aevann1
4eccfeb705
sneed
2022-11-19 18:23:53 +02:00
Aevann1
caff8815ee
restore pinning to how it was before JC raped it
2022-11-19 17:36:37 +02:00
justcool393
750a87713f
pins: fix removal behavior
2022-11-19 08:24:32 -06:00
justcool393
33878fcd02
remove unnecessary check
2022-11-19 07:46:23 -06:00
Aevann1
0be653e632
remove unecessary request when making a post linking to a yt video
2022-11-19 06:44:07 -06:00
Snakes
38ac92b4aa
search: escape apostrophes.
2022-11-18 16:55:15 -05:00
Aevann1
2fd63d7474
I hate you and I hope you die a violent death
2022-11-18 23:11:03 +02:00
justcool393
aaa6d6696e
lowercase it too
2022-11-18 14:39:52 -06:00
justcool393
fc5d78a4a1
don't do it for the POST either
2022-11-18 14:34:23 -06:00
Snakes
2c81db79ef
Fix API for /comment/<cid>, /search/comments.
2022-11-18 15:33:07 -05:00
justcool393
6f1b9014b4
fix 400: improve 4e57369e68
...
a couple of other places shouldn't redirect either
2022-11-18 14:32:00 -06:00
Aevann1
4e57369e68
dont actually redirect to /reset_2fa
2022-11-18 22:16:28 +02:00
Aevann1
785fb28bb2
fix bug when 2fa toggle looked like it didnt apply
2022-11-18 22:07:07 +02:00
Aevann1
bcfe98c295
remove hole pins when post moved
2022-11-18 21:58:12 +02:00
Aevann1
446ef58c2c
sneed
2022-11-18 21:20:17 +02:00
Snakes
ce84861a44
admin_home: add git HEAD to server status.
2022-11-18 14:05:47 -05:00
justcool393
255d5b2453
security: fix mute bypass
...
modmail: constantify user ID
2022-11-17 16:50:06 -06: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
justcool393
5b03c2535a
kofi: fix rare 500. don't attempt to activate via kofi on sites where it's not enabled
...
this can cause a weird 500
2022-11-17 13:55:07 -06:00
justcool393
8414cec5d5
kofi: don't let "blahblahblah" be considered a valid token
2022-11-17 11:12:32 -06:00
justcool393
caf3a81748
remove unnecessary fstrings
...
(or actually use the feature)
2022-11-17 10:01:03 -06:00
Aevann1
62ef32c9c5
Update votes.py
2022-11-16 21:00:18 +02:00
gooseman
16e23e6f54
make banners not retarded + increase future scalability
2022-11-16 12:07:20 -05:00
justcool393
eba6625b81
casino: procoins -> mbux
2022-11-16 10:14:46 -06:00
justcool393
d1197bac82
chat: sanitize raw body
2022-11-16 08:00:04 -06:00
justcool393
f1bfb87243
chat: permission for mute bypass
2022-11-16 07:00:03 -06:00
justcool393
5b313dd13d
hats: only load routes if feature flag enabled
2022-11-16 06:52:16 -06:00
justcool393
ee8df1e3f1
chat: mops are unmutable
2022-11-16 06:38:24 -06:00
justcool393
1559de125c
add error handler
2022-11-15 23:36:56 -06:00
justcool393
1565d9ca26
use abort(410) instead of the old message.html template
2022-11-15 23:32:57 -06:00
justcool393
5dedde4691
admin: move admin pages to admin dir
2022-11-15 17:15:53 -05:00
justcool393
ee8ad10fac
fix 500 on IntegrityError
2022-11-15 15:12:36 -06:00
justcool393
519a9f91f8
signup: don't accidentally leak *what* validation error it was
2022-11-15 12:59:38 -06:00
justcool393
711518d942
don't redirect to /signup page if registrations are closed
2022-11-15 12:56:57 -06:00
justcool393
01e18dc28b
remove unnecessary checks
...
* in post_reset even if get_account could return a None, it'd 500 anyway
* lmao even in get reset (why is this done twice anyway?)
2022-11-15 11:11:22 -06:00
justcool393
b2f5cf92d0
change msg to be more clear
2022-11-15 10:56:40 -06:00
justcool393
b95ee0864e
fix 2fa bug
2022-11-15 10:56:04 -06:00
justcool393
3d7737387c
use default config vlaue const everywhere
2022-11-15 10:55:00 -06:00
Aevann1
532ebd3ac8
standardize g.db behavior
2022-11-15 17:39:00 +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
Aevann1
6d607a6f59
give ppl a message when they change their settings sucessfully
2022-11-15 16:33:21 +02:00
justcool393
9b734a8e3a
fix ghost
2022-11-15 08:21:37 -06:00
justcool393
a9ebe37e61
sddsdsd
2022-11-15 06:52:17 -06:00
justcool393
3fba55b4ae
fix unread 500
2022-11-15 06:51:48 -06:00
justcool393
08b88ef89b
we don't need requests
2022-11-15 05:38:37 -06:00
justcool393
022a81a4b9
remove unnecessary feature_required flags, moving them to the routes import
2022-11-15 05:37:53 -06:00
justcool393
b2d0671734
merge fix: remove a couple of unnecessary from flask import *s
2022-11-15 05:28:45 -06:00
justcool393
781daeed2f
fix thumbnail thread redux i think
2022-11-15 04:57:49 -06:00
justcool393
60748e4135
add TODO for migration of old comments
2022-11-15 04:43:19 -06:00
Snakes
604321512e
Fix userpage listing sort order (merge error?).
2022-11-15 05:40:16 -05:00
justcool393
168e5d04b9
give the thumbnail thread their own db_session
2022-11-15 04:34:35 -06:00
Snakes
e896aaa1f7
Fix comment rendering when pin.level > 1.
2022-11-15 05:29:47 -05:00
justcool393
4b9c702877
fix listing bugs
2022-11-15 03:28:39 -06:00
justcool393
8f2f48d6d1
[DO NOT MERGE] import detanglation ( #442 )
...
* move Base definition to files.classes.__init__.py
* fix ImportError
* move userpage listing to users.py
* don't import the app from classes
* consts: set default values to avoid crashes
consts: warn if the secret key is the default config value
* card view: sneed (user db schema)
* cloudflare: use DEFAULT_CONFIG_VALUE
* const: set default values
* decouple media.py from __main__
* pass database to avoid imports
* import cleanup and import request not in const, but in the requests mega import
* move asset_submissions site check to __init__
* asset submissions feature flag
* flag
* g.is_tor
* don't import request where it's not needed
* i think this is fine
* mail: move to own routes and helper
* wrappers
* required wrappers move
* unfuck wrappers a bit
* move snappy quotes and marseys to stateful consts
* marsify
* :pepodrool:
* fix missing import
* import cache
* ...and settings.py
* and static.py
* static needs cache
* route
* lmao all of the jinja shit was in feeds.py amazing
* classes should only import what they need from flask
* import Response
* hdjbjdhbhjf
* ...
* dfdfdfdf
* make get a non-required import
* isort imports (mostly)
* but actually
* configs
* reload config on import
* fgfgfgfg
* config
* config
* initialize snappy and test
* cookie of doom debug
* edfjnkf
* xikscdfd
* debug config
* set session cookie domain, i think this fixes the can't login bug
* sdfbgnhvfdsghbnjfbdvvfghnn
* hrsfxgf
* dump the entire config on a request
* kyskyskyskyskyskyskyskyskys
* duifhdskfjdfd
* dfdfdfdfdfdfdfdfdfdfdfdf
* dfdfdfdf
* imoprt all of the consts beacuse fuck it
* ðŸ˜
* dfdfdfdfdfdfsdasdf
* print the entire session
* rffdfdfjkfksj
* fgbhffh
* not the secret keys
* minor bug fixes
* be helpful in the warning
* gfgfgfg
* move warning lower
* isort main imports (i hope this doesn't fuck something up)
* test
* session cookie domain redux
* dfdfdfd
* try only importing Flask
* formkeys fix
* y
* :pepodrool:
* route helper
* remove before flight
* dfdfdfdfdf
* isort classes
* isort helpers
* move check_for_alts to routehelpers and also sort imports and get rid of unused ones
* that previous commit but actkally
* readd the cache in a dozen places they were implicitly imported
* use g.is_tor instead of request.headers. bla bla bla
* upgrade streamers to their own route file
* get rid of unused imports in __main__
* fgfgf
* don't pull in the entire ORM where we don't need it
* features
* explicit imports for the get helper
* explicit imports for the get helper redux
* testing allroutes
* remove unused import
* decouple flask from classes
* syntax fix also remember these have side fx for some reason (why?)
* move side effects out of the class
* posts
* testing on devrama
* settings
* reloading
* settingssdsdsds
* streamer features
* site settings
* testing settings on devrama
* import
* fix modlog
* remove debug stuff
* revert commit 67275b21ab6e2f2520819e84d10bfc1c746a15b6
* archiveorg to _archiveorg
* skhudkfkjfd
* fix cron for PCM
* fix bugs that snekky wants me to
* Fix call to realbody passing db, standardize kwarg
* test
* import check_for_alts from the right place
* cloudflare
* testing on devrama
* fix cron i think
* shadow properly
* tasks
* Remove print which will surely be annoying in prod.
* v and create new session
* use files.classes
* make errors import little and fix rare 500 in /allow_nsfw
* Revert "use files.classes"
This reverts commit 98c10b876cf86ce058b7fb955cf1ec0bfb9996c6.
* pass v to media functions rather than using g
* fix
* dfdfdfdfd
* cleanup, py type checking is dumb so don't use it where it causes issues
* Fix some merge bugs, add DEFAULT_RATELIMIT to main.
* Fix imports on sqlalchemy expressions.
* `from random import random` is an error.
* Fix replies db param.
* errors: fix missing import
* fix rare 500: only send to GIFT_NOTIF_ID if it exists, and send them the right text
* Fix signup formkey.
* fix 2 500s
* propagate db to submissions
* fix replies
* dfdfdfdf
* Fix verifiedcolor.
* is_manual
* can't use getters outside of an app context
* don't attempt to do gumroad on sites where it's not enabled
* don't attempt to do gumraod on sites's where it's unnecessary
* Revert "don't attempt to do gumroad on sites where it's not enabled"
This reverts commit 6f8a6331878655492dfaf1907b27f8be513c14d3.
* fix 500
* validate media type
Co-authored-by: TLSM <duolsm@outlook.com>
2022-11-15 03:19:08 -06:00
justcool393
c9ecb5d535
account linking improvements ( #448 )
...
currently account delinking is very messy and can sometimes just not work
we do codey stuff so it's not as bad
also we create a pretty page for mops to mop up borked account links
* alts: allow proper delinking
* fix prev commit
* url fix
* fix 500
* fixes
* :pepodrool:
* flag
* :pepodrool: redux
* sdsdsdsds
* correct endpoint
* fix html page
* alts: only adjust session history if flag is set
* fix 500
* allow relinking
* fsdsds
* :pepodrool: redux
* alts: don't fail if an alt isn't history
* use postToastSwitch + some API changes
* remove unnecessary variables
* d-none
* delink accounts mod action
* fa-link-slash
* alts: add form to create alt
* remove copied and pasted template
* rounded section
* UI improvement + fix
* \n
* fix status
* admin: remove duplicate route
admin: do a permissions check on 2 pages that need it
admin: set the manual flag for manually flagged alts
* variable change
* fix 500
* alts
* add shadowban icon to alt link tool
* shadowbanned tooltip
* add user info section
* fix 500, remove unnecessary form, and add alt votes button
* trans and also link to page
* margin
* sdsdsd
* stop the count
* fix prev commit
* with ctx
* plural
* alts
* don't show shadowbanned users to those who can't see them
this is... extremely rare and won't ever be seen in production however if perms were ever rearranged in the future, this keeps permissions correct
* shadowban check in alt list
* let shadow realm enthusiasts see shadowban alts
* sdsdsds
* test
* be graceful where needed
* sdsdsdsds
* alts: don't allow adding the same account
alts: clarify wording
* rename and reorder on admin panel
* EOL
* remove frankly unnecessary check
* try with a set
* test
* Revert "try with a set"
This reverts commit 72be353fba5ffa39b37590cc5d3bf584c94ee06e.
* Revert "Revert "try with a set""
This reverts commit 81e41890a192e8b46d0463477998e905fddf56ba.
* Revert "Revert "Revert "try with a set"""
This reverts commit be51592135a3c09848f993f0154bd2ac862ae505.
* clean up test
2022-11-14 12:32:13 -05:00
justcool393
000b4f4c37
can post in ghost threads
2022-11-14 11:20:34 -06:00
Aevann1
41ab1f313c
move feature_required wrappers up
2022-11-14 18:14:47 +02:00
justcool393
d3aea510f8
remove base 36 crap
2022-11-14 10:10:16 -06:00
Snakes
4aedbc9b2e
Fix imports for sub move frontlist invalidation.
2022-11-14 04:14:41 -05:00
Aevann1
58c4db0399
change casino ratelimit
2022-11-14 08:20:19 +02:00
Aevann1
ac8c1d524d
"moved into cc" -> "marked as cc"
2022-11-14 07:49:23 +02:00
Aevann1
e83be235ba
delete frontpage cache when moving posts
2022-11-14 07:49:23 +02:00
justcool393
df992db1db
signups: notify me on signups
2022-11-13 22:01:02 -06:00
justcool393
84d9ed6655
antispam: sanity check
2022-11-13 21:48:52 -06:00
Snakes
b5b8b2927c
Expand blackjack handling pipeline.
2022-11-13 21:43:26 -05:00
justcool393
39e7e61bcb
posts: make ghost threads cost DC again
...
who the hell disabled this
2022-11-13 19:52:32 -06:00
Snakes
cc8f2d1a6e
Restrict permabanned editing content.
2022-11-13 19:00:55 -05:00
Snakes
f6dea300b0
Adjust shadowed comment visibility.
...
- Don't show shadowed comments to non-jannies in notifications.
- Auto-collapse for jannies in notifs/threads.
2022-11-13 17:13:14 -05:00
Snakes
d3f25739f0
Fix ratelimit_user on 3 routes, make proper dec.
2022-11-13 07:25:57 -05:00
Snakes
dd912addd1
chat: allow dev envs, clarify error message.
2022-11-13 06:43:08 -05:00
justcool393
d7f07dcd67
chat: allow club users into chat as well
2022-11-13 05:37:53 -06:00
justcool393
681d8b482a
chat: impose truescore chat limit
2022-11-13 05:31:48 -06:00
Snakes
8fee66c894
Reorder decorators to support f63237a9a2
.
...
Ultimately necessary because otherwise all bots share rate limits
with each other. The somewhat haphazard ordering of decorators bothers
me, but it's functionally required.
Approaches using request context (like reading the Authorization
header in ratelimit_user) likely produce bugs all their own.
2022-11-13 05:18:52 -05:00
justcool393
aa272729f1
default ratelimit and default ratelimit slower
2022-11-13 00:43:47 -06:00
justcool393
1e25421ac9
fixed deduplication and changed to 30/minute per @TLSM
2022-11-13 00:20:19 -06:00
justcool393
7f36637b54
test
2022-11-13 00:11:56 -06:00
justcool393
80d7d5281d
ratelimit_user() wrapper
2022-11-13 00:07:15 -06:00
justcool393
f6842a13e4
links
2022-11-12 20:58:28 -06:00
justcool393
538497eb55
antispam: hook up duplicate checker
2022-11-12 20:48:33 -06:00
Snakes
5ce62245b1
Adjust modmail anti-spam.
2022-11-12 21:37:33 -05:00
justcool393
fd1b7d98bb
voting in the shadow realm fixes
2022-11-12 07:55:16 -06:00
Aevann1
0f9bde0d7b
sneed
2022-11-12 14:10:32 +02:00
Aevann1
31e6ca0889
fix pinned comments logic
2022-11-12 13:33:18 +02:00
justcool393
1d063e39ab
awards: move sb check to be earlier to avoid a query in rare cases
2022-11-12 04:33:47 -06:00
Aevann1
f9b673e33d
allowing adding bets via edit
2022-11-12 12:30:05 +02:00
justcool393
1608b3168a
awards: don't allow users to award messages
2022-11-12 04:29:07 -06:00
Aevann1
3f17624de6
validate poll options body_html length
2022-11-12 12:27:05 +02:00
justcool393
e3cd6c73f5
use the name styling the @Aevann1 likes
2022-11-12 04:24:08 -06:00
justcool393
c4c4076560
spider: fix bug that would instantly eat a spider award if someone was permanently spidered
2022-11-12 04:21:17 -06:00
Aevann1
27a8fd4657
same as last commit
2022-11-12 12:11:46 +02:00
Aevann1
a9188f5dac
"This user" -> "@username"
2022-11-12 12:08:43 +02:00
Aevann1
1b162fb049
prevent ppl from wasting their progressive stack on boosted users
2022-11-12 12:07:58 +02:00
Aevann1
b37ebff403
revert prev commit and redo logic
2022-11-12 12:02:23 +02:00
Aevann1
6f30cdeee5
only limit /settings/kofi to subscriptions
2022-11-12 11:56:26 +02:00
Aevann1
18c7fb365e
move the logic for my prev commit to SQLalchemy
2022-11-12 11:24:05 +02:00
Aevann1
9b85fd5dd5
hide modmail messages from muted users in the main notifications tab (they still appear in the modmail tab)
2022-11-12 11:19:56 +02:00
Aevann1
42e40c1691
split off muting and unmuting
2022-11-12 11:11:34 +02:00
justcool393
b1924e0cdf
don't bother try checking invalid urls
2022-11-11 23:40:17 -06:00
Aevann1
0796a17422
switch from hcaptcha to turnstile
2022-11-11 20:34:06 +02:00
Aevann1
7f2630f4c3
increase chat limit from 100 msgs to 500 (yolo or smth)
2022-11-11 19:19:24 +02:00
Aevann1
e28d26db2d
notify of flairs
2022-11-11 19:04:31 +02:00
Aevann1
ecf68caf20
(Mod) -> (/h/sub Mod)
2022-11-11 19:01:40 +02:00
Aevann1
fc19b1a23e
make the block number accurate for holes with stealth mode
2022-11-11 17:00:56 +02:00
Aevann1
05b7e79b76
remove the code i added for rdrama.com
2022-11-11 15:52:18 +02:00
Aevann1
1b4856e20f
exclude slackernews from hole nerf
2022-11-11 15:37:40 +02:00
justcool393
9f4d62d305
:)
2022-11-11 04:19:44 -06:00
justcool393
0cf37cfe5f
fix for worker timeout
2022-11-11 04:19:44 -06:00
justcool393
0c7eab0def
:pepodrool:
2022-11-11 04:19:43 -06:00
justcool393
f5912bb4cc
we don't need bloody bs4 to get a bloody title
2022-11-11 04:19:43 -06:00
Aevann1
37068acadf
exclude ('space', 'istory', 'dino') from hole nerf
2022-11-11 11:40:31 +02:00
Snakes
439b73d6ae
Make explicit submission flag behavior.
...
Main intention is to allow API users (bots) to benefit from the
defaults typically enforced clientside, and to generally be clearer
about what values do what.
2022-11-11 00:23:03 -05:00
Aevann1
fd3edf51c9
minor bool change
2022-11-11 06:46:14 +02:00
Aevann1
254798d0d4
fix 500 error in WPD/PCM
2022-11-11 06:43:02 +02:00
Snakes
047571ae57
Revert "ranking: don't progstack every single post"
...
This reverts commit 7011c85313
.
2022-11-09 18:31:29 -05:00
justcool393
7011c85313
ranking: don't progstack every single post
2022-11-09 17:18:34 -06:00
Snakes
8ab77eb0ee
Disable non-cosmetic awards on ghost posts.
...
Per poll result: https://rdrama.net/post/79285/-/3049889
Permits cosmetics and pin/unpin to be used; disables all others.
2022-11-09 18:07:23 -05:00
Aevann1
876f1d48f1
extend BOOSTED_USERS to comments
2022-11-09 23:28:11 +02:00
Aevann1
c066227d2b
remove pizza autovote
2022-11-09 23:27:16 +02:00
Snakes
4f0f4412c0
Fix /submit not testing `ghost` as boolean.
2022-11-09 16:24:35 -05:00
Aevann1
368b575716
add a comment in votes.py explaining my motivation
2022-11-09 22:56:27 +02:00
Aevann1
d85ac23c3c
add BOOSTED_USERS
2022-11-09 22:53:24 +02:00
Aevann1
0060a326d7
allow ppl to link discord media in DMs
2022-11-09 21:33:16 +02:00
Aevann1
6694585434
make ghost threads free again
2022-11-09 21:19:29 +02:00
Aevann1
282762bef8
increase vamp award duration from 1 day to 2 days (but dont advertise that this time)
2022-11-09 21:09:38 +02:00
Aevann1
c8b4947fa4
tweak rdrama algo
2022-11-09 21:02:17 +02:00
Aevann1
780e0f85f1
fix 500 error
2022-11-09 19:58:32 +02:00
Snakes
e0f43c3668
Remove is_nofollow from backend.
2022-11-09 10:05:36 -05:00
Snakes
4afa60dc81
Use database to filter hidevotedon directly.
...
We no longer need to build a list of potentially tens of thousands
of submission_ids in Python from the database to then pass back to
the database.
2022-11-09 09:57:51 -05:00
Snakes
ebb3957f41
Eager load submission listing relationships.
2022-11-09 09:16:22 -05:00
geese-suck
462e3421b5
organize templates ( #435 )
...
dude file management lmao
2022-11-09 01:11:46 -05:00
justcool393
26549a6e66
remove logged out routes ( #433 )
...
* remove /logged_out/ routes
* update sitemap, remove users route, and update header
* cloudflare cookie
* only mess with the cookie whenever we desire auth
* sitemap: (small) improvements
sitemap: fix little bug i introduced
sitemap: fix login redirects for /id/ routes
* sitemap: remove duplicate entry
* contact is auth desired
* imports: don't import what we don't need and bind late to the db
* praying to god this works
* keep yourself safe
* oh i actually need to commit and push lol
* import Sub
* t
* refix cache purger
2022-11-09 00:35:24 -05:00
Aevann1
8b1f76f727
add hole actions notifs for hole mods
2022-11-08 15:49:43 +02:00
Aevann1
aaa98b9290
sneed
2022-11-08 12:43:53 +02:00
Aevann1
9d22dbe92e
sneed
2022-11-08 12:01:30 +02:00
Aevann1
c76bfa5ffc
fix 3 permapin limit not working
2022-11-08 11:41:16 +02:00
Aevann1
23a241f026
fix https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/3040826?context=8#context
2022-11-08 10:08:09 +02:00
justcool393
2c043d20e7
css fix
2022-11-07 21:40:11 -06:00
Aevann1
3f4a568d32
fix permachudding
2022-11-08 05:37:18 +02:00
justcool393
7a0fe8015e
css: redirect
2022-11-07 20:53:57 -06:00
justcool393
ddbe3de33b
remove catalog feature no one uses
2022-11-07 18:59:28 -06:00
Snakes
cb3d92c479
WPD: fix auto-login token validation call params.
2022-11-07 19:41:25 -05:00
Snakes
5e35342d2e
Fix Cloudflare imports identifier shadow.
...
Proximal reason for fix is that /admin/clear_cloudflare_cache resulted
in infinite recursion and a stack overflow because it tried to call
itself as `clear_cloudflare_cache` rather than hitting the function of
the same name in files.helpers.cloudflare.
2022-11-07 17:30:15 -05:00
Aevann1
50bcc81f14
give user an error when they give invalid page input
2022-11-07 23:34:43 +02:00
Snakes
61957ba9ef
Fix /settings/namecolor data key to match frontend.
2022-11-07 16:15:25 -05:00
Aevann1
bf260330df
only show profile-pinned posts in the default sort
2022-11-07 13:27:42 +02:00
justcool393
0fffa7efc0
rename truecoins to truescore
2022-11-06 23:04:34 -08:00
Aevann1
be2b4b6b59
apply perma progstack to /h/masterbaiters
2022-11-07 08:44:39 +02:00
justcool393
2a66ee7d04
shadowban
2022-11-07 00:41:23 -06:00
Aevann1
c915142089
make 1 more button instant
2022-11-07 08:32:30 +02:00
Aevann1
3b49535c4a
make 3 more buttons instant
2022-11-07 08:26: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
justcool393
c6e3df3340
settings: fix NSFW toggle
2022-11-06 23:45:21 -06:00
Aevann1
07f4383d4c
unmarked as chud -> unchudded
2022-11-07 07:44:09 +02:00
Aevann1
99a44f461c
fix chud badge not being given
2022-11-07 07:43:25 +02:00
justcool393
1a30d6ccad
blocks: don't check for blocks on the route midway through creating a post
...
blocks: short circuit with admin check (can avoid a query in some cases)
2022-11-06 23:24:23 -06:00
Aevann1
14b19ac950
add two words to the message
2022-11-07 07:15:46 +02:00
justcool393
771f1972aa
fix custom filters
2022-11-06 22:50:45 -06:00
justcool393
af696a2f9c
verified fixes again
2022-11-06 22:31:38 -06:00
justcool393
0c7d8f0da1
fkjdhfkjdhfdkjfhdkf
2022-11-06 20:06:37 -08:00
justcool393
424e9bc0ae
sanity check
2022-11-06 20:06:37 -08:00
justcool393
54fecd99e5
fix poor, fix 500, sanitize fun stuff
2022-11-06 20:06:37 -08:00
justcool393
7de3bb064c
make API message better
...
also make unchecking the box hide the permalink
2022-11-06 20:06:37 -08:00
justcool393
57df202cfa
don't disable flags
2022-11-06 20:06:37 -08:00