mirror of https://gitlab.com/bashrc2/epicyon
				
				
				
			Get nickname earlier
							parent
							
								
									57a7194d5e
								
							
						
					
					
						commit
						d0705c3f98
					
				
							
								
								
									
										3
									
								
								inbox.py
								
								
								
								
							
							
						
						
									
										3
									
								
								inbox.py
								
								
								
								
							| 
						 | 
				
			
			@ -1797,12 +1797,12 @@ def inboxAfterCapabilities(recentPostsCache: {},maxRecentPosts: int, \
 | 
			
		|||
        updateIndexList=['inbox']
 | 
			
		||||
        populateReplies(baseDir,httpPrefix,domain,postJsonObject,maxReplies,debug)
 | 
			
		||||
 | 
			
		||||
        nickname=handle.split('@')[0]
 | 
			
		||||
        questionUpdateVotes(baseDir,nickname,domain,postJsonObject)
 | 
			
		||||
 | 
			
		||||
        if not isGroup:
 | 
			
		||||
            # create a DM notification file if needed
 | 
			
		||||
            if isDM(postJsonObject):
 | 
			
		||||
                nickname=handle.split('@')[0]
 | 
			
		||||
                if nickname!='inbox':
 | 
			
		||||
                    followDMsFilename=baseDir+'/accounts/'+nickname+'@'+domain+'/.followDMs'
 | 
			
		||||
                    if os.path.isfile(followDMsFilename):
 | 
			
		||||
| 
						 | 
				
			
			@ -1832,7 +1832,6 @@ def inboxAfterCapabilities(recentPostsCache: {},maxRecentPosts: int, \
 | 
			
		|||
            actor=httpPrefix+'://'+domainFull+'/users/'+handle.split('@')[0]
 | 
			
		||||
 | 
			
		||||
            # create a reply notification file if needed
 | 
			
		||||
            nickname=handle.split('@')[0]
 | 
			
		||||
            if isReply(postJsonObject,actor):
 | 
			
		||||
                if nickname!='inbox':
 | 
			
		||||
                    # replies index will be updated
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue