mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-03-03 14:58:53 -05:00
[Glitch] Fix editing description of media uploads with custom thumbnails
Port f760899b04ef5647d8688e9f1f08094fb3cf5894 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
54b209243b
commit
299372babe
@ -507,7 +507,7 @@ export default function compose(state = initialState, action) {
|
|||||||
.set('isUploadingThumbnail', false)
|
.set('isUploadingThumbnail', false)
|
||||||
.update('media_attachments', list => list.map(item => {
|
.update('media_attachments', list => list.map(item => {
|
||||||
if (item.get('id') === action.media.id) {
|
if (item.get('id') === action.media.id) {
|
||||||
return fromJS(action.media);
|
return fromJS(action.media).set('unattached', item.get('unattached'));
|
||||||
}
|
}
|
||||||
|
|
||||||
return item;
|
return item;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user