Skip to content

Draft: Experiment still emoji

HJ requested to merge experiment-still-emoji into develop

This mess of an experiment makes it so that all images in StatusContent are rendered using StillImage component. Obviously this mostly applies to emoji but also if someone uploads a ""rich"" text post with huge animated image in it.

This is done by "patching" rendered content via DOM manipulation and rendering StillImage into appropriate places. Unfortunately, it seems that rendering components like this makes them lose connection to main vue instance, and therefore doesn't have this.$store which is necessary for StillImage to work properly. Compromise was made and StillImage now assumes it should prevent animation if this.$store is unavailable, and actual toggle is made at StatusContent level via CSS.

There's also could be a chance of memory leaking but i do call $destroy on those vue instances so it should all be good?

Merge request reports