DEV: Revert production-only fix for dynamic DirectoryItemSerializer attributes (PR #13504)

Reverts commit FIX: Manually update DirectoryItemSerializer attributes on directory … · discourse/discourse@a9175b7 · GitHub which did not work as expected. This was intended to fix a bug only seen in production, but that wasn’t the case

GitHub