webfinger: refactor webfinger() functions
authorWilliam Pitcock <nenolod@dereferenced.org>
Wed, 13 Jun 2018 06:37:02 +0000 (06:37 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Wed, 13 Jun 2018 06:42:27 +0000 (06:42 +0000)
commit59f95a7095f7f066f4f787f8fa1d04ceca4a3148
tree41bbcab9c306a7651fd0579a79ea19ee4a947cab
parentddc654d587eb74922f4c097088872edd9f337aa0
webfinger: refactor webfinger() functions

- remove code duplication
- move user lookup to parent with statement
- tighten both user lookup by nickname and activitypub URI with a type constraint
lib/pleroma/web/web_finger/web_finger.ex