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:
|
if user is None:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
if user.pk == obj.pk:
|
if not user.profilemodel.is_friend(obj) and user.pk != obj.pk:
|
||||||
return True
|
|
||||||
|
|
||||||
if not user.profilemodel.is_friend(obj):
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
return notice_manager.get_consumer_by_user(obj.user) is not None
|
return notice_manager.get_consumer_by_user(obj.user) is not None
|
||||||
|
Loading…
Reference in New Issue
Block a user