i am making a social media app and want that app's users to have a default profile pic how am i suppose to implement this
TL;DR
To set a default profile picture for users in your social media app, you can create a function that will trigger whenever a user is created using the `users.*.create` event. In this function, assign the newly created user the default picture.
Here are the steps to implement this:
1. Create a function in your app that will be triggered whenever a user is created.
2. Use the `users.*.create` event to listen for new user creations.
3. In the function, assign the default profile picture to the newly created user.
4. You can customize the default profile picture according to your app's design and requirementsThe best way is to create a function that will trigger any time user create using the users.*.create event.
Then in that function assign the newly created user the defualt picture.
Check events here: https://appwrite.io/docs/events#authentication-events
Recommended threads
- Help
- All my apps are not opening now
All my apps are not opening now 200+ apps are not opening plz fast
- Realtime: Listener not triggered on upda...
I self host appwrite 1.8.1. The genereal functionallity works fine. But my realtime subscription isn't updating. I see "Received heartbeat response from realtim...