From f3897529d0a33b70f8acd387672a303dba939778 Mon Sep 17 00:00:00 2001 From: Wire Date: Sun, 19 Jul 2020 11:05:50 +0200 Subject: [PATCH] Add 'open in nitter' button --- app/routes.py | 4 ++-- app/templates/_post.html | 4 ++++ app/templates/_post_nort.html | 16 +++++++++------- app/templates/_post_saved.html | 4 ++++ 4 files changed, 19 insertions(+), 9 deletions(-) diff --git a/app/routes.py b/app/routes.py index 8116ed8..ed48aa2 100644 --- a/app/routes.py +++ b/app/routes.py @@ -272,7 +272,7 @@ def getFeed(urls): newPost.userProfilePic = rssFeed.channel.image.url except: newPost.profilePicture = "" - newPost.urlToPost = post.link + newPost.url = post.link newPost.content = Markup(post.description) if "Pinned" in post.title.split(":")[0]: @@ -310,7 +310,7 @@ def getPosts(account): newPost.userProfilePic = rssFeed.channel.image.url except: newPost.profilePicture = "" - newPost.urlToPost = post.link + newPost.url = post.link newPost.content = Markup(post.description) if "Pinned" in post.title.split(":")[0]: diff --git a/app/templates/_post.html b/app/templates/_post.html index 8b462df..7e26fb1 100644 --- a/app/templates/_post.html +++ b/app/templates/_post.html @@ -5,6 +5,10 @@
+ + + +
{{ post.op }}
diff --git a/app/templates/_post_nort.html b/app/templates/_post_nort.html index 062fc16..53860e1 100644 --- a/app/templates/_post_nort.html +++ b/app/templates/_post_nort.html @@ -5,6 +5,10 @@
+ + + +
{{ post.op }}
@@ -17,13 +21,11 @@

{{post.content}}

-

-

- -
-

+
+ +