Fix bug no-follow
This commit is contained in:
parent
a226496408
commit
d0dbb3a887
1 changed files with 6 additions and 4 deletions
|
@ -304,10 +304,12 @@ def get_status_context(request, include_ignored=False):
|
||||||
if joined_id:
|
if joined_id:
|
||||||
recent_list = Profile.objects.raw(
|
recent_list = Profile.objects.raw(
|
||||||
f'SELECT * from judge_profile where id in ({joined_id}) order by field(id,{joined_id})')
|
f'SELECT * from judge_profile where id in ({joined_id}) order by field(id,{joined_id})')
|
||||||
|
try:
|
||||||
friend_list = Friend.get_friend_profiles(request.profile).exclude(id__in=recent_profile_id)\
|
friend_list = Friend.get_friend_profiles(request.profile).exclude(id__in=recent_profile_id)\
|
||||||
.exclude(id__in=ignored_users)\
|
.exclude(id__in=ignored_users)\
|
||||||
.order_by('-last_access')
|
.order_by('-last_access')
|
||||||
|
except:
|
||||||
|
friend_list = Profile.objects.none()
|
||||||
admin_list = queryset.filter(display_rank='admin')\
|
admin_list = queryset.filter(display_rank='admin')\
|
||||||
.exclude(id__in=friend_list).exclude(id__in=recent_profile_id)
|
.exclude(id__in=friend_list).exclude(id__in=recent_profile_id)
|
||||||
all_user_status = queryset\
|
all_user_status = queryset\
|
||||||
|
|
Loading…
Reference in a new issue