Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
photobook-hive opened this issue Jun 3, 2021 · 2 comments
Open

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

photobook-hive opened this issue Jun 3, 2021 · 2 comments

Comments

@photobook-hive
Copy link
Contributor

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
Copy link
Contributor

sicarius97 commented Jun 9, 2021

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

@sicarius97
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants