mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-19 03:11:38 +03:00
better alt text without file extension
This commit is contained in:
parent
352d6faed5
commit
933c4bb38f
@ -127,10 +127,10 @@ export const UploadsGalleryModal = forwardRef(({
|
||||
for (const index of map.keys()) {
|
||||
console.log(index)
|
||||
const item = mediaUploads[index]
|
||||
|
||||
const hhash = item.url.split('/').pop()
|
||||
data.push({
|
||||
url: item.url,
|
||||
hash: item.url.split('/').pop()
|
||||
hash: hhash.replace(/\.[^/.]+$/, "")
|
||||
})
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user