Implements pleroma!4080 (merged), fixes #1335 (closed).
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>