Whether the profile user doesn't exist or isn't in the network of the logged in user, a 500 error is served. The code is built to still render profile.html, while serving arguments, but it never gets there. Once the code is fixed I can set up the front end to handle non existent user and out of network profiles.
As a side note, both non-existent and out-of-network users will be handled identically, so the code can be simplified so both lead to the same render of profile.html.
Whether the profile user doesn't exist or isn't in the network of the logged in user, a 500 error is served. The code is built to still render profile.html, while serving arguments, but it never gets there. Once the code is fixed I can set up the front end to handle non existent user and out of network profiles.
As a side note, both non-existent and out-of-network users will be handled identically, so the code can be simplified so both lead to the same render of profile.html.