MCPcopy
hub / github.com/InstaPy/InstaPy / is_commenting_enabled

Function is_commenting_enabled

instapy/comment_util.py:336–345  ·  view source on GitHub ↗

Find out if commenting on the post is enabled

(browser, logger)

Source from the content-addressed store, hash-verified

334
335
336def is_commenting_enabled(browser, logger):
337 """Find out if commenting on the post is enabled"""
338
339 comments_disabled = getMediaData("comments_disabled", browser)
340
341 if comments_disabled is True:
342 msg = "Comments are disabled for this post."
343 return False, msg
344
345 return True, "Success"
346
347
348def get_comments_count(browser, logger):

Callers 1

verify_commentingFunction · 0.85

Calls 1

getMediaDataFunction · 0.85

Tested by

no test coverage detected