Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost

remotes/1693176582716663532/tmp_refs/heads/watchparty
Aevann1 2022-09-23 14:01:46 +02:00
commit 182b851e58
24 changed files with 378 additions and 368 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 814 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 259 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -840,11 +840,14 @@ class User(Base):
g.db.add(self)
g.db.commit()
return
if u.is_suspended_permanently:
self.shadowbanned = u.banned_by.username
g.db.add(self)
g.db.commit()
return
## Disabled pending better solution: permabans haven't propagated for
## most of Summer 2022. We've gotten somewhat used to this. Think we only
## want them to propagate on account creation? Or at least needs discussion.
# if u.is_suspended_permanently:
# self.shadowbanned = u.banned_by.username
# g.db.add(self)
# g.db.commit()
# return
@property
@lazy

View File

@ -32,8 +32,7 @@ def cron(every_5m, every_1h, every_1d, every_1mo):
spin_roulette_wheel()
offsitementions.offsite_mentions_task()
if SITE_NAME == 'PCM':
cache.delete_memoized(route_static.live_cached)
route_static.live_cached()
route_static.live_cached(force=True)
if every_1h:
awards.award_timers_bots_task()

View File

@ -443,8 +443,10 @@ if SITE == 'pcmemes.net':
live_thumb_regex = re.compile('\{"thumbnail":\{"thumbnails":\[\{"url":"(.*?)"', flags=re.A)
offline_regex = re.compile('","title":"(.*?)".*?"width":48,"height":48\},\{"url":"(.*?)"', flags=re.A)
@cache.memoize(timeout=86400)
def live_cached():
@cache.memoize(timeout=86400,
forced_update=(lambda force=False: force),
args_to_ignore=["force"])
def live_cached(force=False):
live = []
offline = []
db = db_session()

File diff suppressed because it is too large Load Diff