mirror of https://gitlab.com/bashrc2/epicyon
				
				
				
			Remove default arguments
							parent
							
								
									ca526fa0d3
								
							
						
					
					
						commit
						ac735e2d91
					
				
							
								
								
									
										2
									
								
								blog.py
								
								
								
								
							
							
						
						
									
										2
									
								
								blog.py
								
								
								
								
							|  | @ -273,7 +273,7 @@ def _html_blog_post_content(debug: bool, session, authorized: bool, | ||||||
|     if actor_json: |     if actor_json: | ||||||
|         languages_understood = get_actor_languages_list(actor_json) |         languages_understood = get_actor_languages_list(actor_json) | ||||||
|     json_content = get_content_from_post(post_json_object, system_language, |     json_content = get_content_from_post(post_json_object, system_language, | ||||||
|                                          languages_understood) |                                          languages_understood, "content") | ||||||
|     minimize_all_images = False |     minimize_all_images = False | ||||||
|     attachment_str, _ = \ |     attachment_str, _ = \ | ||||||
|         get_post_attachments_as_html(base_dir, nickname, domain, |         get_post_attachments_as_html(base_dir, nickname, domain, | ||||||
|  |  | ||||||
|  | @ -2045,7 +2045,7 @@ def create_edits_html(edits_json: {}, post_json_object: {}, | ||||||
|     edit_dates_list.sort(reverse=True) |     edit_dates_list.sort(reverse=True) | ||||||
|     edits_str = '' |     edits_str = '' | ||||||
|     content = get_content_from_post(post_json_object, system_language, |     content = get_content_from_post(post_json_object, system_language, | ||||||
|                                     languages_understood) |                                     languages_understood, "content") | ||||||
|     if not content: |     if not content: | ||||||
|         return '' |         return '' | ||||||
|     content = remove_html(content) |     content = remove_html(content) | ||||||
|  | @ -2054,7 +2054,7 @@ def create_edits_html(edits_json: {}, post_json_object: {}, | ||||||
|         if not has_object_dict(prev_json): |         if not has_object_dict(prev_json): | ||||||
|             continue |             continue | ||||||
|         prev_content = get_content_from_post(prev_json, system_language, |         prev_content = get_content_from_post(prev_json, system_language, | ||||||
|                                              languages_understood) |                                              languages_understood, "content") | ||||||
|         if not prev_content: |         if not prev_content: | ||||||
|             continue |             continue | ||||||
|         prev_content = remove_html(prev_content) |         prev_content = remove_html(prev_content) | ||||||
|  |  | ||||||
							
								
								
									
										2
									
								
								utils.py
								
								
								
								
							
							
						
						
									
										2
									
								
								utils.py
								
								
								
								
							|  | @ -434,7 +434,7 @@ def remove_markup_tag(html: str, tag: str) -> str: | ||||||
| 
 | 
 | ||||||
| def get_content_from_post(post_json_object: {}, system_language: str, | def get_content_from_post(post_json_object: {}, system_language: str, | ||||||
|                           languages_understood: [], |                           languages_understood: [], | ||||||
|                           content_type: str = "content") -> str: |                           content_type: str) -> str: | ||||||
|     """Returns the content from the post in the given language |     """Returns the content from the post in the given language | ||||||
|     including searching for a matching entry within contentMap |     including searching for a matching entry within contentMap | ||||||
|     """ |     """ | ||||||
|  |  | ||||||
|  | @ -2654,7 +2654,7 @@ def individual_post_as_html(signing_priv_key_pem: str, | ||||||
|                                           languages_understood) |                                           languages_understood) | ||||||
| 
 | 
 | ||||||
|     content_str = get_content_from_post(post_json_object, system_language, |     content_str = get_content_from_post(post_json_object, system_language, | ||||||
|                                         languages_understood) |                                         languages_understood, "content") | ||||||
| 
 | 
 | ||||||
|     # remove any css styling within the post itself |     # remove any css styling within the post itself | ||||||
|     content_str = remove_style_within_html(content_str) |     content_str = remove_style_within_html(content_str) | ||||||
|  | @ -2751,7 +2751,7 @@ def individual_post_as_html(signing_priv_key_pem: str, | ||||||
|     domain_full = get_full_domain(domain, port) |     domain_full = get_full_domain(domain, port) | ||||||
|     if not content_str: |     if not content_str: | ||||||
|         content_str = get_content_from_post(post_json_object, system_language, |         content_str = get_content_from_post(post_json_object, system_language, | ||||||
|                                             languages_understood) |                                             languages_understood, "content") | ||||||
|         # remove any css styling within the post itself |         # remove any css styling within the post itself | ||||||
|         content_str = remove_style_within_html(content_str) |         content_str = remove_style_within_html(content_str) | ||||||
|         content_language = \ |         content_language = \ | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue