fd
This commit is contained in:
parent
13773f28fa
commit
b26640ed20
6 changed files with 9 additions and 13 deletions
|
@ -38,7 +38,7 @@ services:
|
||||||
- READ_ONLY=0
|
- READ_ONLY=0
|
||||||
- BOT_DISABLE=0
|
- BOT_DISABLE=0
|
||||||
- COINS_NAME=Dramacoins
|
- COINS_NAME=Dramacoins
|
||||||
- DEFAULT_TIME_FILTER=day
|
- DEFAULT_TIME_FILTER=all
|
||||||
- DEFAULT_THEME=dark
|
- 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
|
- 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
|
- SLOGAN=Dude bussy lmao
|
||||||
|
|
|
@ -45,7 +45,9 @@ def post_pid_comment_cid(cid, pid=None, anything=None, v=None):
|
||||||
|
|
||||||
if not pid:
|
if not pid:
|
||||||
if comment.parent_submission: pid = comment.parent_submission
|
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)
|
try: pid = int(pid)
|
||||||
except: abort(404)
|
except: abort(404)
|
||||||
|
|
|
@ -361,13 +361,11 @@ def changelog(v):
|
||||||
@auth_desired
|
@auth_desired
|
||||||
def random_post(v):
|
def random_post(v):
|
||||||
|
|
||||||
|
|
||||||
x = g.db.query(Submission).filter(Submission.deleted_utc == 0, Submission.is_banned == False)
|
x = g.db.query(Submission).filter(Submission.deleted_utc == 0, Submission.is_banned == False)
|
||||||
|
|
||||||
total = x.count()
|
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}")
|
return redirect(f"/post/{post.id}")
|
||||||
|
|
||||||
@cache.memoize(timeout=86400)
|
@cache.memoize(timeout=86400)
|
||||||
|
|
|
@ -161,7 +161,7 @@
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<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>
|
||||||
<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>
|
<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>
|
||||||
|
|
||||||
|
|
|
@ -290,10 +290,6 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</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>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<!-- After report is made, show this -->
|
<!-- After report is made, show this -->
|
||||||
|
|
2
setup
2
setup
|
@ -1,4 +1,3 @@
|
||||||
sysctl vm.overcommit_memory=1
|
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install apt-transport-https ca-certificates curl software-properties-common
|
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 -
|
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 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 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
|
sudo chmod +x /usr/local/bin/docker-compose
|
||||||
|
sysctl vm.overcommit_memory=1
|
||||||
docker-compose up
|
docker-compose up
|
Loading…
Add table
Add a link
Reference in a new issue