Fixes tweet reply user profile links

When a user quoted another, the quoted user profile link was broken
This commit is contained in:
pluja 2020-10-06 19:13:04 +02:00
parent 3dbb76d6a3
commit c60b3ade82
2 changed files with 5 additions and 2 deletions

View File

@ -819,7 +819,10 @@ def getFeed(urls):
if quote.find('div', attrs={'class':'unavailable-quote'}):
newPost["replyingUser"]="Unavailable"
else:
try:
newPost["replyingUser"]=quote.find('a', attrs={'class':'username'}).text
except:
newPost["replyingUser"]="Unavailable"
post.find('div', attrs={'class':'quote'}).decompose()
if post.find('div', attrs={'class':'attachments'}):

View File

@ -29,7 +29,7 @@
{% if post.isReply %}
<div class="ui card">
<div class="content">
<div class="header"><a href="/post.replyingUser">{{post.replyingUser}}</a></div>
<div class="header"><a href="/{{post.replyingUser}}">{{post.replyingUser}}</a></div>
<div class="meta">{{post.replyingUser}}</div>
<div class="description break-word">
{{post.replyingTweetContent | safe}}