testing out displaying images in a tweet
Signed-off-by: Chloe Carver-Brown <admin@twxtter.com>
This commit is contained in:
parent
93ef84a6b0
commit
e3f061aba2
|
@ -780,9 +780,12 @@ def embed(video_link, vnf, image, raw=False):
|
|||
vnf["time"] = 0
|
||||
print(" ➤ [ X ] Failed QRT check - old VNF object")
|
||||
|
||||
appNamePost = ""
|
||||
if vnf["type"] == "Text": # Change the template based on tweet type
|
||||
template = "text.html"
|
||||
if vnf["type"] == "Image":
|
||||
if vnf['images'][4] != "1":
|
||||
appNamePost = " - Image " + str(image+1) + "/" + str(vnf['images'][4])
|
||||
image = vnf["images"][image]
|
||||
if vnf["images"][4] != "1":
|
||||
imagecount = "Twitter (" + vnf["images"][4] + " images in post)"
|
||||
|
@ -821,7 +824,7 @@ def embed(video_link, vnf, image, raw=False):
|
|||
user=vnf["uploader"],
|
||||
video_link=video_link,
|
||||
color=color,
|
||||
appname=config["config"]["appname"],
|
||||
appname=config['config']['appname']+appNamePost,
|
||||
repo=config["config"]["repo"],
|
||||
url=config["config"]["url"],
|
||||
urlDesc=urlDesc,
|
||||
|
|
Reference in New Issue