Cache ActivityPub post before replying or boosting - #307
Merged
akirk merged 13 commits intoMay 1, 2024
Conversation
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
This was referenced May 1, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:

This also changes it so that the existing comments will be downloaded with ActivityPub so that you get some context on the existing discussion:

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