Monorepo for Tangled tangled.org

appview/oauth: create tangled profile on first login #1010

merged opened by anirudh.fi targeting master from icy/tolqpt

Creates an empty sh.tangled.actor.profile on first login. This should prevent profile picture uploads from breaking due to profile record existing beforehand.

This should also allow for us to estimate total users better globally.

Signed-off-by: Anirudh Oppiliappan anirudh@tangled.org

Labels

None yet.

assignee

None yet.

Participants 2
AT URI
at://did:plc:hwevmowznbiukdf6uk5dwrrq/sh.tangled.repo.pull/3mcyvm2bhkj22
Interdiff #1 #2
appview/oauth/handler.go

This file has not been changed.

History

3 rounds 3 comments
sign up or login to add to the discussion
1 commit
expand
appview/oauth: create tangled profile on first login
3/3 success
expand
expand 1 comment

this change lgtm! will test out the whole thing.

pull request successfully merged
1 commit
expand
appview/oauth: create tangled profile on first login
3/3 success
expand
expand 1 comment

Makes sense, done.

1 commit
expand
appview/oauth: create tangled profile on first login
expand 1 comment

do we need this? would have thought just new(tangled.ActorProfile) or &tangled.ActorProfile{} would suffice.

i would also suggest that we do this:

  • change the existence check to look in the DB instead of the user's PDS
  • if not present, putRecord in the PDS as well as insert an empty record in the DB

this way the existence check, upon login, is much faster.