🐛 Bug fixes of player
This commit is contained in:
		| @@ -32,11 +32,14 @@ function getThumbnail(item: any): string | null { | |||||||
| } | } | ||||||
|  |  | ||||||
| function getAttachments(item: any): any[] { | function getAttachments(item: any): any[] { | ||||||
|   if (item?.attachments[0] && item?.attachments[0].mimetype.startsWith("image")) { |   let filtered = false; | ||||||
|     return item?.attachments?.slice(1, item?.attachments?.length - 1) ?? []; |   return item.attachments.filter((item: any) => { | ||||||
|   } else { |     if(item.mimetype.startsWith("image") && !filtered) { | ||||||
|     return item?.attachments; |       filtered = true; | ||||||
|  |       return false; | ||||||
|     } |     } | ||||||
|  |     return true; | ||||||
|  |   }) | ||||||
| } | } | ||||||
|  |  | ||||||
| function getAuthorLink(user: any): string { | function getAuthorLink(user: any): string { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user