mirror of https://gitlab.com/bashrc2/epicyon
				
				
				
			More reserved names
							parent
							
								
									aaa60e2763
								
							
						
					
					
						commit
						6ec9946a29
					
				|  | @ -1046,7 +1046,7 @@ class PubServer(BaseHTTPRequestHandler): | |||
| 
 | ||||
|         # Show the calendar for a user | ||||
|         if htmlGET and '/users/' in self.path: | ||||
|            if '/calendar?' in self.path: | ||||
|            if '/calendar' in self.path: | ||||
|                # show the calendar screen | ||||
|                msg=htmlCalendar(self.server.translate, \ | ||||
|                                 self.server.baseDir,self.path).encode() | ||||
|  |  | |||
							
								
								
									
										2
									
								
								utils.py
								
								
								
								
							
							
						
						
									
										2
									
								
								utils.py
								
								
								
								
							|  | @ -310,7 +310,7 @@ def validNickname(domain: str,nickname: str) -> bool: | |||
|             return False | ||||
|     if nickname==domain: | ||||
|         return False | ||||
|     reservedNames=['inbox','dm','outbox','following','public','followers','capabilities'] | ||||
|     reservedNames=['inbox','dm','outbox','following','public','followers','capabilities','calendar','tlreplies','tlmedia','moderation'] | ||||
|     if nickname in reservedNames: | ||||
|         return False | ||||
|     return True | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue