def METHOD_NAME(request, post, data):
    # Change type
    if data["change_type"]:
        post.type = data["change_type"]
        post.save()
    # Labels
    if data["new_label"]:
        label = LABELS.get(data["new_label"])
        if label:
            post.label_code = data["new_label"]
            post.save()
    if data["remove_label"]:
        post.label_code = None
        post.save()
    # Pins
    if data["add_pin"]:
        post.is_pinned_until = datetime.utcnow() + timedelta(days=data["pin_days"])
        post.save()
    if data["remove_pin"]:
        post.is_pinned_until = None
        post.save()
    # Moving up
    if data["move_up"]:
        post.last_activity_at = datetime.utcnow()
        post.save()
    # Moving down
    if data["move_down"]:
        post.last_activity_at -= timedelta(days=3)
        post.save()
    # Shadow banning
    if data["shadow_ban"]:
        post.is_shadow_banned = True
        post.save()
    # Hide from feeds
    if data["hide_from_feeds"]:
        post.is_visible_in_feeds = False
        post.save()
    # Show back in feeds
    if data["show_in_feeds"]:
        post.is_visible_in_feeds = True
        post.save()
    # Ping collectible tag owners again
    if data["re_ping_collectible_tag_owners"]:
        if post.collectible_tag_code:
            notify_post_collectible_tag_owners(post)