The discussion revolves around generating letter avatars from a user’s name instead of their username, particularly during an import where usernames are integers. pfaffman seeks a way to use the user’s name for avatar generation. Falco suggests modifying the external system avatars url setting to include {name_first_letter} as a substitution, referencing the relevant code in user.rblink. pfaffman initially considers a PR but realizes it might be complex, opting instead to create a plugin, which they eventually succeed in doing link.
But it seems like I could make a PR that involved about 2 lines of code, something like
u=User.find_by_username(username)
name = some stuff if that search fails or there's no name
...
url.gsub! "{name_first_letter", name[0].downcase
...
And it’d take me a Long Time to figure out how to make a plugin do that.
And it’d need to be a bit more complicated not not needlessly do a username lookup every time, so it might not be as easy a PR as I’d thought, so maybe I"ll have to figure out the plugin after all.