Aevann1
f292069c3e
small adjustment to glowop
2022-10-16 20:27:37 +02:00
Snakes
dca21741c3
Discord removal: fix syntax error, asst'd cleanup.
2022-10-16 09:03:08 -04:00
justcool393
aa508fc076
remove discord
2022-10-16 05:42:52 -07:00
justcool393
be055d1d82
fix "52yr ago" bug
2022-10-15 23:57:55 -07:00
justcool393
32a4693da9
fix a couple of potentially rare 500s
2022-10-15 14:35:24 -07:00
justcool393
60284daa8e
replace all of the duplicated age strings with make_age_string
2022-10-15 11:11:43 -07:00
Snakes
ed2b6938ba
Amend 35fd90c9c: calc_users gets g but not g.agent.
2022-10-15 07:33:25 -04:00
Snakes
35fd90c9ca
Amend c95e33831: even fewer globals than expected.
2022-10-15 07:27:26 -04:00
Snakes
c95e33831c
Check for globals in calc_users; fix error pages.
2022-10-15 07:23:29 -04:00
Aevann1
f2225e700a
change MAX_IMAGE_SIZE_BANNER_RESIZED_MB into MAX_IMAGE_SIZE_BANNER_RESIZED_KB
2022-10-15 12:37:55 +02:00
Aevann1
4f8f8db54f
reduce allowed size for banners/sidebar/badges from 1MB to 0.5MB
2022-10-15 12:13:23 +02:00
Aevann1
6465982580
decouple v.last_active from the calc_users
2022-10-15 12:08:14 +02:00
justcool393
39aa59a37a
add g.is_api_or_xhr so we can use it where we want to give API output
...
* also use v.client for strict API clients
2022-10-15 02:11:36 -07:00
Aevann1
0d0cde1d2b
fix prev commit
2022-10-15 09:33:58 +02:00
Aevann1
c24851dbb3
only calculate users when we actually need them
2022-10-15 09:31:24 +02:00
Snakes
683d562058
Fix pruning of {SITE}_loggedin/out dicts.
...
For the past week, we noticed a gradual increase in CPU usage and
request times. Use of a sampling profiler revealed the time waas spent
in serializing/deserializing data stored in Redis. In particular, the
user counter dicts were filtered for calculation of the loggedin/out
counters, but the filtered versions were never stored.
To make concurrency safe, we still filter on every request, but at
least the resting data will eventually be appropriately filtered,
and this data is non-critical regardless.
2022-10-14 17:41:26 -04:00
justcool393
419ed61dd3
discord ids as constants
2022-10-14 11:46:39 -07:00
Aevann1
afd11e376f
fix 500 error
2022-10-14 19:15:29 +02:00
Aevann1
77312317f3
get rid of Boolean columns for permenant awards
2022-10-14 18:59:49 +02:00
justcool393
36b370dd14
use comment length for snappy, not post
2022-10-14 06:19: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
Aevann1
948bd21f9b
Revert "minor change in sorting_and_time"
...
This reverts commit 3a3cb0da4d
.
2022-10-13 18:21:26 +02:00
Aevann1
3a3cb0da4d
minor change in sorting_and_time
2022-10-13 18:21:00 +02:00
Aevann1
9f24a8ddc5
remove annoyance
2022-10-13 14:02:31 +02:00
justcool393
fb150dab8e
use constant instead of literal 5
2022-10-13 00:58:33 -07:00
justcool393
c56e45aa57
create cloudflare helper
2022-10-13 00:55:15 -07:00
Aevann1
cdff11424f
use charge_account everywhere
2022-10-12 18:33:00 +02:00
justcool393
fe9064a9b7
update get.py redux
2022-10-12 08:40:43 -07:00
justcool393
5c03e5a7a4
Update get.py
2022-10-12 08:33:49 -07:00
justcool393
c67406b84b
use site specific patron name
2022-10-12 03:45:45 -07:00
justcool393
b92535c286
pings bypass permission
2022-10-12 02:36:29 -07:00
justcool393
db9b37de40
type hints for get functions :)
2022-10-12 02:22:13 -07:00
justcool393
96879894af
remove 417 (use 409) and reword 418 msg
2022-10-12 02:00:18 -07:00
justcool393
5377472146
show correct max video size
2022-10-12 01:53:23 -07:00
justcool393
ca7fa50419
remove 414 and change 413 msgs
...
* use 413 for videos and put explanatory text there
* add style text for 413 as well
2022-10-12 01:52:08 -07:00
Snakes
166e33dc38
Clarify architecture of sort_objects.
2022-10-12 04:05:26 -04:00
Aevann1
2aa281e8c8
refactor sorting again (untested)
2022-10-12 09:03:28 +02:00
Aevann1
925ec12141
more shadowban refactor
2022-10-12 08:53:32 +02:00
Aevann1
81b2e04ff7
Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost
2022-10-12 08:40:04 +02:00
justcool393
dcd875c40c
max image and video size are constants now
...
* the error pages still need to be fixed
2022-10-11 23:27:17 -07:00
Aevann1
e1ee9a69e4
refactor seeing shadowbanned shit (untested)
2022-10-12 08:24:30 +02:00
Aevann1
318a20250c
Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost
2022-10-12 08:10:15 +02:00
Aevann1
b1abd33835
refactor sorting
2022-10-12 08:10:11 +02:00
Snakes
baf0386d8c
PCM: re-enable gambling.
2022-10-12 02:08:20 -04:00
justcool393
501fbbf5d3
move antispam code to actions
2022-10-11 22:34:55 -07:00
Aevann1
0cb2a56f5c
fix last commit
2022-10-11 19:28:08 +02:00
Aevann1
a9dd6bf1e7
add a media check
2022-10-11 19:26:38 +02:00
Aevann1
b544171449
store the fullpath in the media table
2022-10-11 19:20:15 +02:00
Aevann1
466867afd1
Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost
2022-10-11 18:41:12 +02:00
Aevann1
e3a3cbd358
add "hot" comment sorting
2022-10-11 18:41:09 +02:00
justcool393
63215b8888
move messages to constant file and also remove special logic for PCM, instead opting to modify the constant instead
2022-10-11 08:40:19 -07:00
Aevann1
06c858b6cf
fix 500 error
2022-10-11 15:43:57 +02:00
Aevann1
998b966f2b
remove unnecessary shit in wrappers
2022-10-11 15:19:55 +02:00
justcool393
01138ab592
bypass read only mode perm
2022-10-11 00:54:02 -07:00
justcool393
456dd43bba
replace "if not FEATURES" with wrapper
2022-10-11 00:33:23 -07:00
justcool393
ab2ab2ddf9
improve wrappers so they can be used with others
2022-10-11 00:33:23 -07:00
justcool393
940f815f84
loudly tell users they can't do this while suspended
2022-10-10 23:15:09 -07:00
justcool393
75e593da00
Revert "feature required wrapper"
...
This reverts commit 8700bcc5ee
.
2022-10-10 02:54:47 -07:00
Aevann1
30813fc719
Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost
2022-10-10 11:06:32 +02:00
Aevann1
00b045c464
tweak env again
2022-10-10 11:06:27 +02:00
justcool393
f872f734ec
constantify a bunch of things
...
* sign up follow id is now a thing (if not specified will just msg carp instead)
* notification thread id is also a constant now
* blackjackbtz id is a constant, used for i think special PM handling
2022-10-09 23:37:42 -07:00
justcool393
8700bcc5ee
feature required wrapper
2022-10-09 23:16:05 -07:00
justcool393
1111932b8c
remove weird random check if it's an issue we can readd it
2022-10-09 13:13:55 -07:00
justcool393
6d5dcaec9a
fix long post bot lol
2022-10-09 09:40:20 -07:00
justcool393
a9064e7828
newline at eof
2022-10-09 06:52:41 -07:00
justcool393
56e800fd9d
move basedbot to actions as well
2022-10-09 06:49:08 -07:00
justcool393
64cd774390
ree
2022-10-09 06:29:58 -07:00
justcool393
63c7fe0c29
move zozbot and longpostbot into the actions helpers
2022-10-09 06:28:18 -07:00
justcool393
87fd8ee57a
comment sanity checks and constantization
...
* make HTML body length a constant and use it
* abort before uploads and other tasks if comment level is too deep
* what a nightmare of two functions, please do better next time
2022-10-09 05:54:46 -07:00
justcool393
8ea52ba95c
constantify comment body length limit and transfer limit
2022-10-09 00:20:28 -07:00
Aevann1
b515b8bd15
change DOMAIN env var to SITE (for consistency)
2022-10-08 04:06:55 +02:00
Aevann1
cbbcbd570a
Revert "fix WPD"
...
This reverts commit 6750a156fd
.
2022-10-08 03:19:16 +02:00
Aevann1
6750a156fd
fix WPD
2022-10-08 03:14:54 +02:00
Aevann1
2a638f71c3
Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost
2022-10-08 02:44:06 +02:00
Aevann1
cfd4b6399f
use mailgun again
2022-10-08 02:44:02 +02:00
Aevann1
aa8e7055fb
rework env vars a bit
2022-10-08 02:43:04 +02:00
Snakes
7ea61f423d
PCM: disable gambling; extend FEATURES['GAMBLING'].
2022-10-07 20:31:46 -04:00
justcool393
48384ba8e5
convert a couple of the old constantified permissions to the new system
...
i don't want to break something so i'm keeping one of them for now but it just links
2022-10-07 01:50:20 -07:00
justcool393
26fbf726a4
remove unused permission
2022-10-06 23:24:00 -07:00
justcool393
e372158729
Merge branch 'frost' into permissions-refactor
2022-10-06 19:05:42 -07:00
Aevann1
01071a20e8
add banner_thread to PCM
2022-10-07 03:32:08 +02:00
Aevann1
6bdb0d792b
fix my mentions
2022-10-06 21:52:57 +02:00
Snakes
60e4e92e90
Suppress ffmpeg progress output, fix trailing flag.
2022-10-06 15:17:36 -04:00
Aevann1
3cf838af29
fix thumbnails and add opera-proxy to docker
2022-10-06 21:07:45 +02:00
justcool393
d4b3e4ac5b
fix some stuff in the user page template including add mute to user page properly
2022-10-06 03:05:18 -07:00
justcool393
2b51b13dcc
user moderation tools visible permission
2022-10-06 02:37:41 -07:00
justcool393
eeca9617bd
post comment moderation tools visible permission
2022-10-06 02:33:46 -07:00
Snakes
24167b1d09
Fix thumbnail_thread passing uploader to media.
2022-10-06 05:15:21 -04:00
justcool393
8db6b3f7fd
improve POST_TO_CHANGELOG check
2022-10-06 02:09:46 -07:00
justcool393
397cf68abd
view vote buttons on user page
2022-10-06 01:14:32 -07:00
justcool393
8bed8c64e8
rearrange and rename a couple of permissions
2022-10-06 00:55:54 -07:00
justcool393
02d0e2043e
rename APPS_MODERATE to APPS_MODERATION
2022-10-06 00:40:36 -07:00
justcool393
6e33531be3
remove a _FOR_
2022-10-06 00:38:33 -07:00
Aevann1
79960d58be
ping me for "aev"
2022-10-06 09:33:47 +02:00
justcool393
767093d060
add perms for things we don't really know what they are
2022-10-06 00:32:05 -07:00
Aevann1
96f4f8499f
fix 500 errors
2022-10-06 09:30:38 +02:00
justcool393
039fa606d6
streamer permissions
2022-10-05 23:22:42 -07:00
justcool393
8d51980dca
rename cache purge things to include prefix
2022-10-05 23:21:04 -07:00
official-techsupport
4e23161f11
Re-enable showmore_regex for Snappy ( #389 )
...
* Re-enable showmore_regex for Snappy
* showmore a bit more aggressively
2022-10-06 02:17:28 -04:00
justcool393
4fdccc331a
view last active in template
2022-10-05 23:02:27 -07:00
Aevann1
3a4aa3f3af
fix bugs
2022-10-06 08:00:41 +02:00
justcool393
6911101e29
post bet distributions
2022-10-05 22:59:27 -07:00
justcool393
53a5343a55
use ban permission for muting and also add a user home permission (wonder if should be the same as mop perm)
2022-10-05 22:54:48 -07:00
Aevann1
42344cb76f
add media table
2022-10-06 07:54:04 +02:00
justcool393
f2f954e0dd
add note about marseybux printing disabled on rDrama
2022-10-05 22:50:42 -07:00
justcool393
047013f92b
patron perm and also move them around
2022-10-05 22:48:55 -07:00
justcool393
0c0fa68cb4
title change permission
2022-10-05 22:45:44 -07:00
justcool393
1220d06eab
some admin perms and also fix search
2022-10-05 22:37:50 -07:00
justcool393
20bd38b5d3
add oauth permissions
2022-10-05 22:33:55 -07:00
justcool393
dc5a132583
mop visibility, WPD notifications, and a fix with shadowbans
2022-10-05 22:25:45 -07:00
Aevann1
1d666b3569
fix prev commit
2022-10-06 07:23:05 +02:00
Aevann1
4563a2b18a
fix prev commit
2022-10-06 07:16:24 +02:00
justcool393
38f3c7ed55
view sorted admin list and message blocked users
2022-10-05 22:16:09 -07:00
Aevann1
168f18893f
change wording of an error msg
2022-10-06 07:08:48 +02:00
justcool393
68851ed986
profile views and modmail/hole creation notifications
2022-10-05 22:07:38 -07:00
Aevann1
f52d6258ae
fix prev commit
2022-10-06 07:07:24 +02:00
Aevann1
d832e195a7
same as last commit
2022-10-06 07:05:03 +02:00
justcool393
f531b12727
alt seeing eye
2022-10-05 22:01:02 -07:00
justcool393
d78d57ec79
all seeing eye permission
2022-10-05 21:59:06 -07:00
Aevann1
304c65d303
convert webm to mp4
2022-10-06 06:54:05 +02:00
justcool393
5739f128cf
club and chudrama permissions
2022-10-05 21:52:15 -07:00
justcool393
06f88e8a4a
post based permissions mostly
2022-10-05 21:45:54 -07:00
justcool393
57b08043a4
notification settings and admin setting
2022-10-05 21:40:02 -07:00
Aevann1
0c8ead2e7d
stop using lain.la
2022-10-06 06:31:08 +02:00
justcool393
3f1cc45a2b
settings, cache, and domain ban permissions
2022-10-05 21:26:15 -07:00
justcool393
9bb7b3758f
distinguish stuff
2022-10-05 21:19:11 -07:00
justcool393
44bf01151f
apparently this thing likes to commit without committing half of it ok
2022-10-05 21:03:40 -07:00
Snakes
3c261f19cd
Add JC to NOTIFIED_USERS.
2022-10-05 23:59:33 -04:00
justcool393
a3b9d71e70
user badge permissions
2022-10-05 20:50:02 -07:00
justcool393
65c75ba5da
club permissions
2022-10-05 20:47:42 -07:00
justcool393
4aef026594
add and remove admin permissions
2022-10-05 20:37:18 -07:00
justcool393
3cf972ef9a
merge permission
2022-10-05 20:33:23 -07:00
justcool393
c813f52c1a
view active users perm
2022-10-05 20:29:14 -07:00
justcool393
1a0785d497
add perm for kippy's marseybux printer
2022-10-05 20:26:39 -07:00
justcool393
c0f753e101
asset submissions permissions
2022-10-05 20:15:10 -07:00
justcool393
c2109fd611
modmail viewing perm
2022-10-05 20:10:57 -07:00
justcool393
d709334180
lottery permissions
2022-10-05 20:09:20 -07:00
justcool393
f5996afc5a
add some perm requirements and add agendaposter thing
2022-10-05 20:04:38 -07:00
justcool393
970a7adfbd
buy ghost award permission
2022-10-05 19:57:31 -07:00
justcool393
0349862531
view pending submitted marseys and hats perms
2022-10-05 19:55:54 -07:00
justcool393
ae0c215af3
...
2022-10-05 19:51:44 -07:00
justcool393
43f137208a
bypass pin limit perm and also fix a shadowban perm
2022-10-05 19:51:30 -07:00
justcool393
d8610b34b6
changelog permission and don't query db for badges if admin with perm level
2022-10-05 19:45:05 -07:00
justcool393
2fc3044d5b
shadowban perms and stuff
2022-10-05 19:24:37 -07:00
justcool393
d5a48871f8
user ban and also fix global hole mod a bit i hope i didn't screw up the templates
2022-10-05 18:58:43 -07:00
justcool393
591e6342bb
editing permissions
2022-10-05 18:24:37 -07:00
justcool393
4b78ed176a
global moderation perm and add some more checks for const perm
2022-10-05 18:16:52 -07:00
justcool393
04f24cd8fd
content moderation permission level
...
holy crap there's a lot
2022-10-05 17:57:08 -07:00
justcool393
d58351637c
use constants
2022-10-05 16:35:44 -07:00
justcool393
093ced7b20
introduce constant for post and title length
2022-10-05 16:35:44 -07:00