kopia lustrzana https://github.com/cheeaun/phanpy
				
				
				
			Attempt to fix posts with invalid dates
							rodzic
							
								
									649de8ca0f
								
							
						
					
					
						commit
						5c925283d7
					
				| 
						 | 
					@ -2331,13 +2331,15 @@ function Status({
 | 
				
			||||||
                          </>
 | 
					                          </>
 | 
				
			||||||
                        )
 | 
					                        )
 | 
				
			||||||
                      }
 | 
					                      }
 | 
				
			||||||
                      <time
 | 
					                      {!!createdAt && (
 | 
				
			||||||
                        class="created"
 | 
					                        <time
 | 
				
			||||||
                        datetime={createdAtDate.toISOString()}
 | 
					                          class="created"
 | 
				
			||||||
                        title={createdAtDate.toLocaleString()}
 | 
					                          datetime={createdAtDate.toISOString()}
 | 
				
			||||||
                      >
 | 
					                          title={createdAtDate.toLocaleString()}
 | 
				
			||||||
                        {createdDateText}
 | 
					                        >
 | 
				
			||||||
                      </time>
 | 
					                          {createdDateText}
 | 
				
			||||||
 | 
					                        </time>
 | 
				
			||||||
 | 
					                      )}
 | 
				
			||||||
                    </a>
 | 
					                    </a>
 | 
				
			||||||
                    {editedAt && (
 | 
					                    {editedAt && (
 | 
				
			||||||
                      <>
 | 
					                      <>
 | 
				
			||||||
| 
						 | 
					@ -3221,7 +3223,7 @@ function generateHTMLCode(post, instance, level = 0) {
 | 
				
			||||||
        — ${emojifyText(
 | 
					        — ${emojifyText(
 | 
				
			||||||
          displayName,
 | 
					          displayName,
 | 
				
			||||||
          accountEmojis,
 | 
					          accountEmojis,
 | 
				
			||||||
        )} (@${acct}) <a href="${url}"><time datetime="${createdAtDate.toISOString()}">${createdAtDate.toLocaleString()}</time></a>
 | 
					        )} (@${acct}) ${!!createdAt ? `<a href="${url}"><time datetime="${createdAtDate.toISOString()}">${createdAtDate.toLocaleString()}</time></a>` : ''}
 | 
				
			||||||
      </footer>
 | 
					      </footer>
 | 
				
			||||||
    </blockquote>
 | 
					    </blockquote>
 | 
				
			||||||
  `;
 | 
					  `;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Ładowanie…
	
		Reference in New Issue