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 simple redirect #4

Open
kzxpr opened this issue May 28, 2023 · 2 comments
Open

Add support for simple redirect #4

kzxpr opened this issue May 28, 2023 · 2 comments

Comments

@kzxpr
Copy link

kzxpr commented May 28, 2023

I'm not sure if this is covered by the proposal, but I would suggest that the URI scheme should also support some sort of simple redirect to an Actor's profile or an Activity Item on their native platform. Strictly speaking this is not an Activity Type.

I have use cases where I would like to be able to link deep into the user's familiar interface, e.g. when they press "ap+web:Actor:username@servername.tld" or "ap+web:Object:[some identifier]".

Also, this would make it possible to do a quick overall implementation - before supporting larger functionality, like a comment track.

@BANOnotIT
Copy link
Contributor

BANOnotIT commented May 28, 2023

You can create custom protocol schema for that. It'll look something like:

web+activitypub:nav%3AShow?
%40context%3Anav=https%3A%2F%2Fshow.schema%2Fv1&
object=acct%3Ausername%40servername.tld

Which decodes to this:

{
  "type": "nav:Show"
  "properties": {
    "@context:nav": "https://show.schema/v1",
    "object": "acct:username@servername.tld"
  }
}

@BANOnotIT
Copy link
Contributor

Although I think it might be a good idea to not have any action at all to just call a view for some ap object.

web+activitypub:?object=acct%3Ausername%40servername.tld

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

No branches or pull requests

2 participants