Closed jwhitbread closed 11 months ago
If the person doesn't have their diary shared with me, we currently return nothing. It might be good to print the warning that mfp returns. e.g. document.find_class('main-title')[0].text is "This Exercise Diary is Private" when I tested it with someone who's my friend, but who has their diary settings set to "private".
Simple change to allow the viewing of friend's exercises. I noticed that no matter what username you pass in it will default to
self.effective_username
. I've just made it so it will pass the username into_get_exercises
from thekwargs
so it can be used in_get_url_for_exercise
.So now I can do:
and it'll return the friend's data and not my own.