def METHOD_NAME(post):
    post["date"] = text.parse_datetime(
        post["created_at"], "%Y-%m-%dT%H:%M:%S.%fZ")
    if "name" in post:
        name, sep, rest = post["name"].rpartition(".")
        post["filename"] = name if sep else rest