Skip to content

Cache ActivityPub post before replying or boosting - #307

Merged
akirk merged 13 commits into
cloudfest-hackathon-compatibilityfrom
cache-before-reply-boost
May 1, 2024
Merged

Cache ActivityPub post before replying or boosting#307
akirk merged 13 commits into
cloudfest-hackathon-compatibilityfrom
cache-before-reply-boost

Conversation

@akirk

@akirk akirk commented May 1, 2024

Copy link
Copy Markdown
Owner

Previously we had a form that previewed the ActivityPub you wanted to reply to or boost. You would arrive there through multiple means. Clicking reply on a post that came in via ActivityPub. Entered the URL in the search form. Through the brwoser extension.

This is now changed so that the URL is downloaded and given its own URL inside the friends plugin and can then be acted upon inline:
Screenshot 2024-05-01 at 14 16 59

This also changes it so that the existing comments will be downloaded with ActivityPub so that you get some context on the existing discussion:
Screenshot 2024-05-01 at 14 17 29

This is makes use of Automattic/wordpress-activitypub#749

@akirk
akirk changed the base branch from main to cloudfest-hackathon-compatibility May 1, 2024 13:59
@akirk
akirk merged commit 8d49ce5 into cloudfest-hackathon-compatibility May 1, 2024
@akirk
akirk deleted the cache-before-reply-boost branch May 1, 2024 14:00
akirk added a commit that referenced this pull request May 1, 2024
* Show Friend posts in the Mastodon timeline

* Add author remapping and reblogs

* Handle external mentions user

* Add static avatar

* Resolve subscription users

* Don't fully override the previous object, just augment it

* Get the right subscription posts

* Return no posts for unknown user

* Only add the friends post type when we're looking for the posts of a subscription

* Improve hooks extractor script

* Improve hooks extractor script

* Improve hooks extractor script

* Improve hooks extractor script

* Improve hooks script

* Unify extract hooks script

* fix cs

* Update hook extraction script

* Update hook extraction script

* Switch to composer package

* Add relationship endpoint

* Ensure non-null values

* Fix following autocomplete for Mastodon accounts

* Ensure signed requests when querying metadata

* Prevent interferring with already resolved users

* Set the implicit in_reply_to mention

* No need to resolve the account

* Cache ActivityPub post before replying or boosting (#307)

* Fix static call

* Handle WP_Error

* Migrate to a new External user

* Retrieve URl to boost or reply to

* Reply inline

* Comment inline

* fix dropdown behind buttons

* Fix mention detection

* Log error data

* Refactor displaying comments inline

* Don't save a reply if it was already handled by activitypub

* Boost via frontend button

* Fix unit tests
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 this pull request may close these issues.

1 participant