{
    "Function": "_initFollowModule",
    "File": "contracts/libraries/PublishingLogic.sol",
    "Parent Contracts": [],
    "High-Level Calls": [
        "IFollowModule"
    ],
    "Internal Calls": [
        "revert FollowModuleNotWhitelisted()"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function _initFollowModule(\n        uint256 profileId,\n        address followModule,\n        bytes memory followModuleData,\n        mapping(address => bool) storage _followModuleWhitelisted\n    ) private returns (bytes memory) {\n        if (followModule != address(0)) {\n            if (!_followModuleWhitelisted[followModule]) revert Errors.FollowModuleNotWhitelisted();\n            bytes memory returnData = IFollowModule(followModule).initializeFollowModule(\n                profileId,\n                followModuleData\n            );\n            return returnData;\n        } else {\n            return new bytes(0);\n        }\n    }"
}