remotes/1693045480750635534/spooky-22
Aevann1 2021-09-05 11:37:05 +02:00
parent 0583239c21
commit e85b8d69d9
6 changed files with 9 additions and 13 deletions

View File

@ -38,7 +38,7 @@ services:
- READ_ONLY=0
- BOT_DISABLE=0
- COINS_NAME=Dramacoins
- DEFAULT_TIME_FILTER=day
- DEFAULT_TIME_FILTER=all
- DEFAULT_THEME=dark
- DEFAULT_COLOR=ff66ac #YOU HAVE TO PICK ONE OF THOSE COLORS OR SHIT WILL BREAK: ff66ac, 805ad5, 62ca56, 38a169, 80ffff, 2a96f3, eb4963, ff0000, f39731, 30409f, 3e98a7, e4432d, 7b9ae4, ec72de, 7f8fa6, f8db58
- SLOGAN=Dude bussy lmao

View File

@ -45,7 +45,9 @@ def post_pid_comment_cid(cid, pid=None, anything=None, v=None):
if not pid:
if comment.parent_submission: pid = comment.parent_submission
else: pid = 6489
elif "rdrama" in request.host: pid = 6489
elif "pcm" in request.host: pid = 382
else: pid = 1
try: pid = int(pid)
except: abort(404)

View File

@ -361,13 +361,11 @@ def changelog(v):
@auth_desired
def random_post(v):
x = g.db.query(Submission).filter(Submission.deleted_utc == 0, Submission.is_banned == False)
total = x.count()
n = random.randint(0, total - 1)
n = random.randint(1, total - 2)
post = x.offset(n).limit(1).first()
post = x.all()[n]
return redirect(f"/post/{post.id}")
@cache.memoize(timeout=86400)

View File

@ -161,7 +161,7 @@
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/settings"><i class="fas fa-cog fa-fw mr-3"></i>My account</a>
<a class="nav-link" href="/settings"><i class="fas fa-cog fa-fw mr-3"></i>Settings</a>
</li>
<li class="nav-item"><a class="nav-link" href="/assets/{{'SITE_NAME' | app_config}}App.apk"><i class="fab fa-android fa-fw mr-3"></i>Android app</a></li>

View File

@ -290,10 +290,6 @@
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-link text-muted" data-dismiss="modal">Cancel</button>
<input type="submit" id="deleteAccountBUtton" class="btn btn-danger" value="Delete my account"></button>
</div>
</form>
</div>
<!-- After report is made, show this -->

4
setup
View File

@ -1,4 +1,3 @@
sysctl vm.overcommit_memory=1
sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
@ -8,4 +7,5 @@ apt-cache policy docker-ce
sudo apt install docker-ce
sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose up
sysctl vm.overcommit_memory=1
docker-compose up