Prototypr/prototypr-frontend

Creator badge

Closed this issue · 1 comments

Publish tool hook

  • on publish tool (use strapi lifecycle hook), check if user has creator badge
  • if no, add one

Update profile hook

  • clear cloudflare cache for user profile
  • clear cache for user's articles?

Later: could add a badges collection for different things. For now no need

just done it as a field in the user, where the user is added as a creator in strapi hook used to send email:

  • new field 'creatorBadge' on user
  • if user has no creatorBadge, set to true
  • added rule so user cannot change their badge status themselves from the profile update endpoint