git-it-write icon indicating copy to clipboard operation
git-it-write copied to clipboard

Add dynamic author ID based on the author email from post content

Open kahnu044 opened this issue 1 year ago • 1 comments

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:

  1. Checking if the author field is provided in the markdown file.
  2. Fetching the user object using the email.
  3. 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.

kahnu044 avatar Aug 06 '24 18:08 kahnu044

wow its, help full and looking for the update, thanks guys.

princetechs avatar Aug 07 '24 08:08 princetechs