nextcloud / nextcloud/contacts

Libravatar Support for Social Media Lookup

Open
#2,405 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop enhancement
Dominant language
JavaScript
Stars
642
Forks
220
Avg merge
14h 39m
Merged PRs (30d)
51

Description

Libravatar (https://www.libravatar.org/) is an open-source federated avatar service that can act as a Gravatar replacement for users, and be self-hosted by domain owners, who can publish the location for their server in SRV DNS entries. It gracefully falls back to Gravatar if the e-mail address is not found through their service.
It would be nice to be able to use this as opposed to Gravatar.

The documentation for the API is located at https://wiki.libravatar.org/api/, but it essentially boils down to doing a lookup for the email domain SRV record and replacing www.gravatar.com with the appropriate base directory, using http://cdn.libravatar.org/avatar or https://secdn.libravatar.org/avatar. As an initial implementation for apps already supporting Gravatar, they recommend just doing this replacement without doing the lookup. Since Libravatar falls back to Gravatar (and handles the federated lookup whether using the main site or self hosted), it would be reasonable to simply allow the site admin to set the "Gravatar" address to quickly implement this functionality.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or tests. Read the Libravatar API documentation first, then locate the existing Gravatar address and lookup flow. Done means an administrator can use a Libravatar-compatible address for avatar lookup, including the documented Gravatar fallback behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.