Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

utilize created_at from rustla username api for adding a birthday flair #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jbpratt
Copy link
Member

@jbpratt jbpratt commented Feb 26, 2021

on load of username from api, grab the created_at date, compare it to
today's YearDay then append a birthday flair if matching.

lint errors for shadowing, range simplification, http errors using code,
and capitalized error strings

on load of username from api, grab the created_at date, compare it to
today's YearDay then append a birthday flair if matching.

lint errors for shadowing, range simplification, http errors using code,
and capitalized error strings
if err != nil {
fmt.Println("err4", err)
return nil, err
}

// if now.Day() == t.Day() && now.Month() == t.Month() && now.Year() == t.Year() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the simplified user object needs to be regenerated when this changes. rn it will only work if the user logs in on their birthday and the flair will stay until they log in again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants