mirror of
				https://git.sr.ht/~tsileo/microblog.pub
				synced 2025-06-05 21:59:23 +02:00 
			
		
		
		
	fixup! Fix URL generation when not at domain root
Oops -- missed these two! Sorry for the noise; let me know if you'd like me to squash and resubmit.
This commit is contained in:
		
				
					committed by
					
						 Thomas Sileo
						Thomas Sileo
					
				
			
			
				
	
			
			
			
						parent
						
							2843155501
						
					
				
				
					commit
					242bf7b515
				
			| @@ -733,7 +733,7 @@ async def outbox_by_public_id( | |||||||
|  |  | ||||||
|     if maybe_object.ap_type == "Article": |     if maybe_object.ap_type == "Article": | ||||||
|         return RedirectResponse( |         return RedirectResponse( | ||||||
|             f"/articles/{public_id[:7]}/{maybe_object.slug}", |             f"{BASE_URL}/articles/{public_id[:7]}/{maybe_object.slug}", | ||||||
|             status_code=301, |             status_code=301, | ||||||
|         ) |         ) | ||||||
|  |  | ||||||
|   | |||||||
| @@ -7,7 +7,7 @@ | |||||||
|         {% if error %} |         {% if error %} | ||||||
|             <p class="primary-color">Invalid password.</p> |             <p class="primary-color">Invalid password.</p> | ||||||
|         {% endif %} |         {% endif %} | ||||||
|         <form class="form" action="/admin/login" method="POST"> |         <form class="form" method="POST"> | ||||||
|             <input type="hidden" name="csrf_token" value="{{ csrf_token }}"> |             <input type="hidden" name="csrf_token" value="{{ csrf_token }}"> | ||||||
|             <input type="hidden" name="redirect" value="{{ redirect }}"> |             <input type="hidden" name="redirect" value="{{ redirect }}"> | ||||||
|             <input type="password" placeholder="password" name="password" autofocus> |             <input type="password" placeholder="password" name="password" autofocus> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user