profiles: online fix status when requesting itself
This commit is contained in:
parent
4351c335cb
commit
737b6fc194
@ -27,10 +27,7 @@ class ProfileSerializer(serializers.ModelSerializer):
|
||||
if user is None:
|
||||
return None
|
||||
|
||||
if user.pk == obj.pk:
|
||||
return True
|
||||
|
||||
if not user.profilemodel.is_friend(obj):
|
||||
if not user.profilemodel.is_friend(obj) and user.pk != obj.pk:
|
||||
return None
|
||||
|
||||
return notice_manager.get_consumer_by_user(obj.user) is not None
|
||||
|
Loading…
Reference in New Issue
Block a user