Is an ID change also a `Move` but under the same domain?
-
replied to Matthias Pfefferle on last edited by
@pfefferle which URL? The server URL, or the Actor ID?
-
replied to Matthias Pfefferle on last edited by
@pfefferle Hmmm…I think the permalinks would be different, although I am sure WordPress could be setup in a way where the permalinks are preserved.
-
replied to Darnell Clayton :verified: on last edited by
@darnell my idea is to change the Actor-ID of a WordPress user to something more generic, so that he/she can more easily rename their handle and maybe also the author-url!
-
replied to Matthias Pfefferle on last edited by
@pfefferle @darnell using usernames in actor ID URIs is discouraged & you should instead use a stable identifier.
-
replied to Matthias Pfefferle on last edited by
@pfefferle @darnell
I use uuids for the ObjectIds (actor id). I had also toyed with the idea of using the Oauth2 UserId, but decided against it.
I might want to allow the actor to log in with 2 different Oauth2 providers at some point.However, this makes debugging and troubleshooting hell
{
"id" : "https://dev.rdf-pub.org/e83aa7a7-6dee-4863-9ffb-e7f57d866d6c/7826f428-40cd-46bd-b1bb-54bdd01bb257",
"type" : [ "prov:Entity", "Person" ],
"inbox" : "https://dev.rdf-pub.org/e83aa7a7-6dee-4863-9ffb-e7f57d866d6c/inbox",
...
} -
replied to Matthias Pfefferle on last edited by [email protected]
@pfefferle @darnell You did not mean the whole URL to be the same, but the Base URL?
Or did you mean that the "url" attribute of the two actor objects is identical, but the "id" points to a new one?
-
replied to André Menrath on last edited by
-
replied to Matthias Pfefferle on last edited by [email protected]
@pfefferle a similar corner case (moving to the exact same URL) came up two weeks ago. i think moving to the same URL with a different query parameter at the end or dropping the query param might be closer to the same URL case than the same domain case, as per my fretting in another branch of this thread https://socialhub.activitypub.rocks/t/switching-ap-server-software-on-the-same-domain/4508/4
-
replied to Matthias Pfefferle on last edited by
@pfefferle @linos @darnell I'm more worried about the query parameter in an IRI than I am about the Move activity having its target on the same domain! I'm no JSON-LD wizard but I wonder if that's valid as a URI to stick in an `actor.id`, and even if it's valid, I'd worry other implementations botching it or dropping the `?...` somehow, because of some unwitting behavior of underlying HTTP validation libraries or whatever
-
replied to bumblefudge on last edited by
@by_caballero @linos @darnell interesting point, but WordPress already uses it for Comments and it seems to work properly so far.
-
replied to Matthias Pfefferle on last edited by [email protected]
@pfefferle @by_caballero @darnell An URI supports query parameters, and even fragments! https://datatracker.ietf.org/doc/html/rfc3986#section-3
So also the WordPress ActivityPub URIs for Create/Announce etc are valid!
-
replied to André Menrath on last edited by
@linos @pfefferle @darnell from the underlying normref supporting it to all implementations behaving as expected is a bit of a leap of faith, but good to know the _first_ part of my concern was baseless!