Attempt to fix redirect loop issue
This commit is contained in:
parent
0dfe5e0c7e
commit
3d8423db96
@ -110,6 +110,8 @@ def twitfix(sub_path):
|
|||||||
|
|
||||||
if match.start() == 0:
|
if match.start() == 0:
|
||||||
twitter_url = "https://twitter.com/" + sub_path
|
twitter_url = "https://twitter.com/" + sub_path
|
||||||
|
else:
|
||||||
|
twitter_url = "https://" + sub_path
|
||||||
|
|
||||||
if isValidUserAgent(user_agent):
|
if isValidUserAgent(user_agent):
|
||||||
res = embedCombined(twitter_url)
|
res = embedCombined(twitter_url)
|
||||||
@ -539,8 +541,8 @@ def embedCombinedVnf(video_link,vnf):
|
|||||||
if qrt is not None:
|
if qrt is not None:
|
||||||
desc=msgs.formatEmbedDesc(vnf['type'],desc,qrt,pollDisplay,likeDisplay)
|
desc=msgs.formatEmbedDesc(vnf['type'],desc,qrt,pollDisplay,likeDisplay)
|
||||||
|
|
||||||
|
host = config['config']['url']
|
||||||
image = "https://vxtwitter.com/rendercombined.jpg?imgs="
|
image = f"{host}/rendercombined.jpg?imgs="
|
||||||
for i in range(0,int(vnf['images'][4])):
|
for i in range(0,int(vnf['images'][4])):
|
||||||
image = image + vnf['images'][i] + ","
|
image = image + vnf['images'][i] + ","
|
||||||
image = image[:-1] # Remove last comma
|
image = image[:-1] # Remove last comma
|
||||||
|
Loading…
x
Reference in New Issue
Block a user