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

Add support for contacts #20

Closed
jamietanna opened this issue Nov 11, 2021 · 6 comments · Fixed by #21
Closed

Add support for contacts #20

jamietanna opened this issue Nov 11, 2021 · 6 comments · Fixed by #21

Comments

@jamietanna
Copy link
Contributor

As mentioned in Platform-Aware @-mentioning People on my Blog I found that setting up the q=contact Micropub query like so:

{
  "contacts": [
    {
      "name": "Barry Frost",
      "nickname": "barryfrost.com",
      "url": "https://barryfrost.com/",
      "silos": {
        "twitter": "BarryF"
      },
      "_internal_url": "https://www.jvt.me/contacts/barryfrost.com/"
    }
  ]
}

Makes it handy to perform different syndication, as well as having autocomplete of people in i.e. Indigenous for Android.

@barryf
Copy link
Owner

barryf commented Nov 11, 2021

I like this concept and find myself needing it from time to time.

How do you manage your list, @jamietanna? Do you manually edit a file?

@jamietanna
Copy link
Contributor Author

Right now, it's a set of JSON files (ignore the .md suffix) in my site, one per contact (link), with contents i.e.:

{
  "client_id": "https://www-editor.jvt.me",
  "deleted": false,
  "draft": false,
  "h": "h-card",
  "kind": "contacts",
  "properties": {
    "name": [
      "Barry Frost"
    ],
    "nickname": [
      "barryfrost.com"
    ],
    "rel=twitter": [
      "BarryF"
    ],
    "url": [
      "https://barryfrost.com/"
    ]
  }
}

I would see this as a fresh table in Dynamo, and then persist it to the content repo, as with the existing content types

@barryf
Copy link
Owner

barryf commented Nov 11, 2021

👍

In indieweb/micropub-extensions#39 there are examples using an optional filter. It might be nice to also support that.

Separate idea: get Micropublish to support creating contacts to simplify managing your contacts list.

@barryf
Copy link
Owner

barryf commented Nov 11, 2021

What do you use the _internal_url value for in your current server?

@jamietanna
Copy link
Contributor Author

jamietanna commented Nov 11, 2021

As per the linked issue, it's allowed for editing - I believe Indigenous for Android performs modification using that URL.

It can also be used for basic Micropub Update i.e. https://micropublish.net/edit?url=https%3A%2F%2Fwww.jvt.me%2Fcontacts%2Fbarryfrost.com%2F&edit=

@barryf
Copy link
Owner

barryf commented Nov 11, 2021

WIP draft PR #21. Thanks - understood re: _internal_url. I'll add that.

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 a pull request may close this issue.

2 participants