holgern/beem

is_main_post() // comment with post URL = is_main_post=True

Opened this issue · 2 comments

is_main_post()
Returns True if main post, and False if this is a comment (reply).

is_main_post() does not recognize comments as comments for certain URL spelling

Link to post valid
https://peakd.com/@dungeondog/erster-druck-meiner-miniaturen-ah-naja-aber-trotzdem-cool
{'age': datetime.timedelta(seconds=54253, microseconds=720797), 'main_post': True, 'category': 'deutsch', 'error': 0, 'author': 'dungeondog', 'title': 'Erster Druck meiner Miniaturen ...äh naja aber trotzdem cool!', 'tags': ['deutsch', 'dnd', 'miniaturen', 'minis', 'rpg', 'art', 'sculpting', 'dungeonsanddragons', '3dprinting', 'druck']}

Link to comment with post URL inside invalid
https://peakd.com/@dungeondog/erster-druck-meiner-miniaturen-ah-naja-aber-trotzdem-cool#@dungeondog/re-muscara-qu3h4n
{'age': datetime.timedelta(seconds=54269, microseconds=215832), 'main_post': True, 'category': 'deutsch', 'error': 0, 'author': 'dungeondog', 'title': 'Erster Druck meiner Miniaturen ...äh naja aber trotzdem cool!', 'tags': ['deutsch', 'dnd', 'miniaturen', 'minis', 'rpg', 'art', 'sculpting', 'dungeonsanddragons', '3dprinting', 'druck']}

Link to comment valid
https://peakd.com/@dungeondog/re-muscara-qu3h4n
{'age': datetime.timedelta(seconds=38389, microseconds=177810), 'main_post': False, 'category': 'deutsch', 'error': 0, 'author': 'dungeondog', 'title': 'RE: Erster Druck meiner Miniaturen ...äh naja aber trotzdem cool!', 'tags': ['deutsch']}

image

@photobook-hive What is the code in the file are you attempting to run?

@photobook-hive I guess I am just wondering what functions you are calling to get that output