Fixes tweet reply user profile links
When a user quoted another, the quoted user profile link was broken
This commit is contained in:
parent
3dbb76d6a3
commit
c60b3ade82
@ -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'}):
|
||||
|
@ -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}}
|
||||
|
Reference in New Issue
Block a user