From f9f7d3c3f2fcac88aa2662bb5571c95aebbea7da Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 21 Dec 2021 16:47:38 +0200 Subject: [PATCH] fdssfd --- docker-compose.yml | 2 +- env | 2 +- files/routes/feeds.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 60dad3b86..dba7d6400 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,7 +8,7 @@ services: - "./:/service" environment: - DATABASE_URL=postgresql://postgres@postgres:5432 - - MASTER_KEY=XuxGqp5NyygJrM24b5gt3YgyvFVGdQnwVDwLzLwpu3eQwY + - MASTER_KEY=3435tdfsdudebussylmaoxxt43 - DOMAIN=localhost - SITE_NAME=Drama - GIPHY_KEY=3435tdfsdudebussylmaoxxt43 diff --git a/env b/env index 85853d8cf..b62a3e91d 100644 --- a/env +++ b/env @@ -1,5 +1,5 @@ export DATABASE_URL="postgresql://postgres@localhost:5432" -export MASTER_KEY="XuxGqp5NyygJrM24b5gt3YgyvFVGdQnwVDwLzLwpu3eQwY" +export MASTER_KEY="3435tdfsdudebussylmaoxxt43" export DOMAIN="localhost" export SITE_NAME="Drama" export GIPHY_KEY="3435tdfsdudebussylmaoxxt43" diff --git a/files/routes/feeds.py b/files/routes/feeds.py index dd72df67f..da5e2f786 100644 --- a/files/routes/feeds.py +++ b/files/routes/feeds.py @@ -35,7 +35,7 @@ def feeds_user(sort='hot', t='all'): for post in posts: with tag("entry", ("xml:base", request.url)): with tag("title", type="text"): - text(post.title) + text(post.realtitle(None)) with tag("id"): text(post.fullname) @@ -61,6 +61,6 @@ def feeds_user(sort='hot', t='all'): if len(post.body_html) > 0: with tag("content", type="html"): - doc.cdata(f'''{post.title}
{post.body_html}''') + doc.cdata(f'''{post.realtitle(None)}
{post.body_html}''') return Response( ""+ doc.getvalue(), mimetype="application/xml") \ No newline at end of file