Skip to content

Commit da2f837

Browse files
committed
Quick fix for #62
1 parent 446b76f commit da2f837

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

bestof.py

+2
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,8 @@ def run(user, pw, instance, postcomm, cfg, post_title, images_only, nsfw_b, modu
334334

335335
if(images_only is True) or ("url" in p['post'] and (("url_content_type" not in p['post']) or (("url_content_type" in p['post']) and (p['post']['url_content_type'][:5] == "image")))):
336336
posttext = posttext + f"![]({p['post']['url']})\n\n"
337+
if(images_only is not True:
338+
posttext += shorten_text(p['post']['body'])
337339
elif "url" in p['post']:
338340
print(f"* {p['post']['name']} - {p['post']['url']}")
339341
if "url_content_type" in p['post']:

news.py

+1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ def article_image(url):
1717
return f'![]({article.top_image})\n\n'
1818
#print(article.summary)
1919
#print(article.title)
20+
#print(article.text)
2021

2122
return None

0 commit comments

Comments
 (0)