Fix emoji error in profile title when hidden
This commit is contained in:
		
							parent
							
								
									c118544555
								
							
						
					
					
						commit
						e12f7b6c05
					
				
							
								
								
									
										2
									
								
								dist/mastodon-timeline.min.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/mastodon-timeline.min.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| @ -52,7 +52,7 @@ class MastodonTimeline { | ||||
|    * Initialize and build the timeline | ||||
|    */ | ||||
|   mtInit() { | ||||
|     console.log("Init Mastodon timeline. Settings: ", this.mtSettings); | ||||
|     // console.log("Init Mastodon timeline. Settings: ", this.mtSettings);
 | ||||
|     this.#loadColorTheme(); | ||||
|     this.#buildTimeline("newTimeline"); | ||||
|   } | ||||
| @ -186,7 +186,7 @@ class MastodonTimeline { | ||||
|           return { ...result, ...dataItem }; | ||||
|         }, {}); | ||||
| 
 | ||||
|         console.log("Timeline data fetched: ", this.mtSettings.fetchedData); | ||||
|         // console.log("Timeline data fetched: ", this.mtSettings.fetchedData);
 | ||||
|         resolve(); | ||||
|       }); | ||||
|     }); | ||||
| @ -311,12 +311,15 @@ class MastodonTimeline { | ||||
|         "</a>"; | ||||
| 
 | ||||
|       // User name and url
 | ||||
|       userName = this.#createEmoji( | ||||
|         c.reblog.account.display_name | ||||
|       userName = c.reblog.account.display_name | ||||
|         ? c.reblog.account.display_name | ||||
|           : c.reblog.account.username, | ||||
|         : c.reblog.account.username; | ||||
|       if (!this.mtSettings.hideEmojos) { | ||||
|         userName = this.#createEmoji( | ||||
|           userName, | ||||
|           this.mtSettings.fetchedData.emojos | ||||
|         ); | ||||
|       } | ||||
|       user = | ||||
|         '<div class="mt-post-header-user">' + | ||||
|         '<a href="' + | ||||
| @ -356,10 +359,15 @@ class MastodonTimeline { | ||||
|         "</a>"; | ||||
| 
 | ||||
|       // User name and url
 | ||||
|       userName = c.account.display_name | ||||
|         ? c.account.display_name | ||||
|         : c.account.username; | ||||
|       if (!this.mtSettings.hideEmojos) { | ||||
|         userName = this.#createEmoji( | ||||
|         c.account.display_name ? c.account.display_name : c.account.username, | ||||
|           userName, | ||||
|           this.mtSettings.fetchedData.emojos | ||||
|         ); | ||||
|       } | ||||
|       user = | ||||
|         '<div class="mt-post-header-user">' + | ||||
|         '<a href="' + | ||||
|  | ||||
| @ -311,12 +311,15 @@ class MastodonTimeline { | ||||
|         "</a>"; | ||||
| 
 | ||||
|       // User name and url
 | ||||
|       userName = this.#createEmoji( | ||||
|         c.reblog.account.display_name | ||||
|       userName = c.reblog.account.display_name | ||||
|         ? c.reblog.account.display_name | ||||
|           : c.reblog.account.username, | ||||
|         : c.reblog.account.username; | ||||
|       if (!this.mtSettings.hideEmojos) { | ||||
|         userName = this.#createEmoji( | ||||
|           userName, | ||||
|           this.mtSettings.fetchedData.emojos | ||||
|         ); | ||||
|       } | ||||
|       user = | ||||
|         '<div class="mt-post-header-user">' + | ||||
|         '<a href="' + | ||||
| @ -356,10 +359,15 @@ class MastodonTimeline { | ||||
|         "</a>"; | ||||
| 
 | ||||
|       // User name and url
 | ||||
|       userName = c.account.display_name | ||||
|         ? c.account.display_name | ||||
|         : c.account.username; | ||||
|       if (!this.mtSettings.hideEmojos) { | ||||
|         userName = this.#createEmoji( | ||||
|         c.account.display_name ? c.account.display_name : c.account.username, | ||||
|           userName, | ||||
|           this.mtSettings.fetchedData.emojos | ||||
|         ); | ||||
|       } | ||||
|       user = | ||||
|         '<div class="mt-post-header-user">' + | ||||
|         '<a href="' + | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 idotj
						idotj