[Glitch] Fix attached media uploads not being cleared when replying to a post

Port bae17ebe5e to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Claire
2023-02-10 22:03:35 +01:00
parent ce84d163cc
commit 58291b31fa
2 changed files with 7 additions and 0 deletions

View File

@ -32,6 +32,11 @@ export default class Upload extends ImmutablePureComponent {
render () {
const { media } = this.props;
if (!media) {
return null;
}
const focusX = media.getIn(['meta', 'focus', 'x']);
const focusY = media.getIn(['meta', 'focus', 'y']);
const x = ((focusX / 2) + .5) * 100;