def post_receive(self) -> None:
from federation.utils.activitypub import retrieve_and_parse_profile  <EOL>try:<EOL><INDENT>from federation.utils.django import get_function_from_config<EOL><DEDENT>except ImportError:<EOL><INDENT>logger.warning("<STR_LIT>"<EOL>"<STR_LIT>")<EOL>return<EOL><DEDENT>get_private_key_function = get_function_from_config("<STR_LIT>")<EOL>key = get_private_key_function(self.target_id)<EOL>if not key:<EOL><INDENT>logger.warning("<STR_LIT>"<EOL>"<STR_LIT>")<EOL>return<EOL><DEDENT>accept = ActivitypubAccept(<EOL>activity_id=f"<STR_LIT>",<EOL>actor_id=self.target_id,<EOL>target_id=self.activity_id,<EOL>)<EOL>try:<EOL><INDENT>profile = retrieve_and_parse_profile(self.actor_id)<EOL><DEDENT>except Exception:<EOL><INDENT>profile = None<EOL><DEDENT>if not profile:<EOL><INDENT>logger.warning("<STR_LIT>")<EOL>return<EOL><DEDENT>try:<EOL><INDENT>handle_send(<EOL>accept,<EOL>UserType(id=self.target_id, private_key=key),<EOL>recipients=[{<EOL>"<STR_LIT>": profile.inboxes["<STR_LIT>"],<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT>": False,<EOL>}],<EOL>)<EOL><DEDENT>except Exception:<EOL><INDENT>logger.exception("<STR_LIT>")<EOL><DEDENT>
Post receive hook - send back follow ack.