git-it-write
git-it-write copied to clipboard
Add dynamic author ID based on the author email from post content
This pull request introduces functionality to dynamically set the author ID based on the email provided in a new property field named author in the markdown file.
The process involves:
- Checking if the
authorfield is provided in the markdown file. - Fetching the user object using the email.
- Updating the dynamic user ID if a matching user is found.
This enhancement ensures that posts are accurately attributed to the correct author based on the provided email address.
Changes include:
- Variable renaming for better readability and consistency.
- Added checks and logic to dynamically assign the user ID.
Please review the changes and let me know if any adjustments are needed.
wow its, help full and looking for the update, thanks guys.