parent
							
								
									6291fa0f5c
								
							
						
					
					
						commit
						28ac03c42f
					
				@ -1,10 +1,11 @@
 | 
			
		||||
from typing import Set
 | 
			
		||||
 | 
			
		||||
from asgiref.sync import async_to_sync
 | 
			
		||||
from django import forms
 | 
			
		||||
from django.views.generic import FormView
 | 
			
		||||
 | 
			
		||||
from activities.models import Hashtag
 | 
			
		||||
from users.models import Domain, Identity
 | 
			
		||||
from users.models import Domain, Identity, IdentityStates
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class Search(FormView):
 | 
			
		||||
@ -37,7 +38,10 @@ class Search(FormView):
 | 
			
		||||
                    identity = Identity.by_username_and_domain(
 | 
			
		||||
                        username, domain, fetch=True
 | 
			
		||||
                    )
 | 
			
		||||
                identity = None
 | 
			
		||||
                    if identity and identity.state == IdentityStates.outdated:
 | 
			
		||||
                        async_to_sync(identity.fetch_actor)()
 | 
			
		||||
                else:
 | 
			
		||||
                    identity = None
 | 
			
		||||
            if identity:
 | 
			
		||||
                results.add(identity)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -782,6 +782,10 @@ table.metadata td.name {
 | 
			
		||||
    margin-left: 32px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.post.user {
 | 
			
		||||
    overflow: hidden;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.left-column .post {
 | 
			
		||||
    background: var(--color-bg-box);
 | 
			
		||||
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user