holgern / beem

A python library to interact with the HIVE blockchain
http://beem.readthedocs.io/en/latest/
Other
136 stars 73 forks source link

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

Open photobook-hive opened 3 years ago

photobook-hive commented 3 years ago

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

sicarius97 commented 3 years ago

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

sicarius97 commented 3 years ago

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