parent
6eb2aec15a
commit
672732670d
|
@ -148,7 +148,7 @@ async def main():
|
||||||
async def _actual_start_post(random_post, chats):
|
async def _actual_start_post(random_post, chats):
|
||||||
text = f'<a href="{random_post.shortlink}">{html.escape(random_post.title)}</a>'
|
text = f'<a href="{random_post.shortlink}">{html.escape(random_post.title)}</a>'
|
||||||
cpid = getattr(random_post, 'crosspost_parent', None)
|
cpid = getattr(random_post, 'crosspost_parent', None)
|
||||||
if cpid:
|
if cpid and getattr(random_post, 'crosspost_parent_list', None):
|
||||||
random_post = reddit.submission(cpid[3:])
|
random_post = reddit.submission(cpid[3:])
|
||||||
text += f' (crosspost of <a href="{random_post.shortlink}">{html.escape(random_post.title)}</a>)'
|
text += f' (crosspost of <a href="{random_post.shortlink}">{html.escape(random_post.title)}</a>)'
|
||||||
if not random_post.is_self:
|
if not random_post.is_self:
|
||||||
|
|
Loading…
Reference in New Issue