Convert Post and Comment to new activitystreams library version #69
Loading…
Reference in New Issue
No description provided.
Delete Branch "more-upgrade-apub"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Need to make sure that I copied all the parameters correctly.
The test
Create comment on alpha and search it
is failing. Did you change the comment routing recently? The website showshttp://localhost:8550/post/2/comment/1
as URL, but the routing is setup forhttp://localhost:8550/comment/1
.The 2nd url is the correct activitypub one. The first is just a way for the front end to scroll to that location.
@ -4,3 +3,1 @@
extensions::signatures::sign,
insert_activity,
is_apub_id_valid,
community::do_announce, extensions::signatures::sign, insert_activity, is_apub_id_valid,
Make sure you run
cargo +nightly fmt
Thanks, I forgot.
Running the test gave me this error on comment creation:
Which is this line:
Which tells me the comment in_reply_tos aren't being built correctly as before. Comments should always include the post_url as the first in_reply_to, and the parent_comment (if it exists) as the next one.
@ -177,3 +173,1 @@
.next()
.unwrap()
.to_string();
let post_url = c.in_reply_to.as_ref().unwrap().as_single_xsd_any_uri().unwrap();
Its probably this. This isn't a single, but a many_in_reply_tos.
Seems like that was it, tests are passing now.
So I might have been testing the wrong thing then. Anyway it would be nice if the HTTP url for a comment and the apub ID were the same, so you can easily search for it (same way as for posts or communities).
I'm testing now.
We might add a https://instance/comment/X at some point, especially once tree paging starts to get worked on. But right now, just showing a single comment on the front end isn't too useful.
I'm not talking about changing anything in the way things are displayed. Just that you can take a comment link, paste it directly into the search and have it fetch that remote object.