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'}):
|
if quote.find('div', attrs={'class':'unavailable-quote'}):
|
||||||
newPost["replyingUser"]="Unavailable"
|
newPost["replyingUser"]="Unavailable"
|
||||||
else:
|
else:
|
||||||
newPost["replyingUser"]=quote.find('a', attrs={'class':'username'}).text
|
try:
|
||||||
|
newPost["replyingUser"]=quote.find('a', attrs={'class':'username'}).text
|
||||||
|
except:
|
||||||
|
newPost["replyingUser"]="Unavailable"
|
||||||
post.find('div', attrs={'class':'quote'}).decompose()
|
post.find('div', attrs={'class':'quote'}).decompose()
|
||||||
|
|
||||||
if post.find('div', attrs={'class':'attachments'}):
|
if post.find('div', attrs={'class':'attachments'}):
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
{% if post.isReply %}
|
{% if post.isReply %}
|
||||||
<div class="ui card">
|
<div class="ui card">
|
||||||
<div class="content">
|
<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="meta">{{post.replyingUser}}</div>
|
||||||
<div class="description break-word">
|
<div class="description break-word">
|
||||||
{{post.replyingTweetContent | safe}}
|
{{post.replyingTweetContent | safe}}
|
||||||
|
Reference in New Issue
Block a user