Add 'open in nitter' button
This commit is contained in:
parent
6b645c691b
commit
f3897529d0
@ -272,7 +272,7 @@ def getFeed(urls):
|
|||||||
newPost.userProfilePic = rssFeed.channel.image.url
|
newPost.userProfilePic = rssFeed.channel.image.url
|
||||||
except:
|
except:
|
||||||
newPost.profilePicture = ""
|
newPost.profilePicture = ""
|
||||||
newPost.urlToPost = post.link
|
newPost.url = post.link
|
||||||
newPost.content = Markup(post.description)
|
newPost.content = Markup(post.description)
|
||||||
|
|
||||||
if "Pinned" in post.title.split(":")[0]:
|
if "Pinned" in post.title.split(":")[0]:
|
||||||
@ -310,7 +310,7 @@ def getPosts(account):
|
|||||||
newPost.userProfilePic = rssFeed.channel.image.url
|
newPost.userProfilePic = rssFeed.channel.image.url
|
||||||
except:
|
except:
|
||||||
newPost.profilePicture = ""
|
newPost.profilePicture = ""
|
||||||
newPost.urlToPost = post.link
|
newPost.url = post.link
|
||||||
newPost.content = Markup(post.description)
|
newPost.content = Markup(post.description)
|
||||||
|
|
||||||
if "Pinned" in post.title.split(":")[0]:
|
if "Pinned" in post.title.split(":")[0]:
|
||||||
|
@ -5,6 +5,10 @@
|
|||||||
<div class="left floated author">
|
<div class="left floated author">
|
||||||
<img class="ui avatar image" src="{{ url_for('static',filename='img/avatars/')}}{{range(1, 12) | random}}.png">
|
<img class="ui avatar image" src="{{ url_for('static',filename='img/avatars/')}}{{range(1, 12) | random}}.png">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<a href="{{post.url}}"><span class="right floated star">
|
||||||
|
<i class="share square outline icon"></i>
|
||||||
|
</span></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="header" id="author"><a href="user/{{post.op.replace('@','')}}">{{ post.op }}</a></div>
|
<div class="header" id="author"><a href="user/{{post.op.replace('@','')}}">{{ post.op }}</a></div>
|
||||||
<div class="meta">
|
<div class="meta">
|
||||||
|
@ -5,6 +5,10 @@
|
|||||||
<div class="left floated author">
|
<div class="left floated author">
|
||||||
<img class="ui avatar image" src="{{ post.profilePic }}">
|
<img class="ui avatar image" src="{{ post.profilePic }}">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<a href="{{post.url}}"><span class="right floated star">
|
||||||
|
<i class="share square outline icon"></i>
|
||||||
|
</span></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="header" id="author"><a href="user/{{post.op.replace('@','')}}">{{ post.op }}</a></div>
|
<div class="header" id="author"><a href="user/{{post.op.replace('@','')}}">{{ post.op }}</a></div>
|
||||||
<div class="meta">
|
<div class="meta">
|
||||||
@ -17,13 +21,11 @@
|
|||||||
<p>{{post.content}}</p>
|
<p>{{post.content}}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="extra content">
|
<div class="extra content">
|
||||||
<p>
|
<form class="ui form" action="{{ url_for('savePost', url=post.urlToPost.replace('/', '~')) }}" method="post">
|
||||||
<form class="ui form" action="{{ url_for('savePost', url=post.urlToPost.replace('/', '~')) }}" method="post">
|
<button type="submit" class="ui icon button">
|
||||||
<button type="submit" class="ui icon button">
|
<i class="bookmark outline icon"></i>
|
||||||
<i class="bookmark outline icon"></i>
|
</button>
|
||||||
</button>
|
</form>
|
||||||
</form>
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!--<div class="extra content">
|
<!--<div class="extra content">
|
||||||
|
@ -5,6 +5,10 @@
|
|||||||
<div class="left floated author">
|
<div class="left floated author">
|
||||||
<img class="ui avatar image" src="{{ url_for('static',filename='img/avatars/')}}{{range(1, 12) | random}}.png">
|
<img class="ui avatar image" src="{{ url_for('static',filename='img/avatars/')}}{{range(1, 12) | random}}.png">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<a href="{{post.url}}"><span class="right floated star">
|
||||||
|
<i class="share square outline icon"></i>
|
||||||
|
</span></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="header" id="author"><a href="user/{{post.username}}">@{{ post.username }}</a></div>
|
<div class="header" id="author"><a href="user/{{post.username}}">@{{ post.username }}</a></div>
|
||||||
<div class="meta">
|
<div class="meta">
|
||||||
|
Reference in New Issue
Block a user