def comment_user(self, user_id, amount=None):
if not self.check_user(user_id, filter_closed_acc=True):<EOL><INDENT>return False<EOL><DEDENT>self.logger.info("<STR_LIT>" % user_id)<EOL>user_id = self.convert_to_user_id(user_id)<EOL>medias = self.get_user_medias(user_id, is_comment=True)<EOL>if not medias:<EOL><INDENT>self.logger.info(<EOL>"<STR_LIT>")<EOL>return False<EOL><DEDENT>return self.comment_medias(medias[:amount])<EOL>
Comments last user_id's medias