-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added API endpoint to repost a post (#302)
ref https://linear.app/ghost/issue/AP-702 - added `POST /actions/reposts/:id` endpoint to repost a post - "Repost" is the equivalent of the "Announce" activity in the ActivityPub vocabulary, or "Boost" in the Mastodon vocabulary
- Loading branch information
Showing
5 changed files
with
153 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
Feature: Reposting a post | ||
In order to share content with my followers | ||
As a user | ||
I want to be able to repost a post in my feed | ||
|
||
Scenario: Reposting a post that has not been reposted before | ||
Given an Actor "Person(Alice)" | ||
And we follow "Alice" | ||
And the request is accepted | ||
And a "Accept(Follow(Alice))" Activity "Accept" by "Alice" | ||
And "Alice" sends "Accept" to the Inbox | ||
And "Accept" is in our Inbox | ||
And a "Create(Note)" Activity "Note" by "Alice" | ||
And "Alice" sends "Note" to the Inbox | ||
And "Note" is in our Inbox | ||
When we repost the object "Note" | ||
Then a "Announce(Note)" activity is sent to "Alice" | ||
|
||
Scenario: Reposting an post that has been reposted before | ||
Given an Actor "Person(Alice)" | ||
And we follow "Alice" | ||
And the request is accepted | ||
And a "Accept(Follow(Alice))" Activity "Accept" by "Alice" | ||
And "Alice" sends "Accept" to the Inbox | ||
And "Accept" is in our Inbox | ||
And a "Create(Note)" Activity "Note" by "Alice" | ||
And "Alice" sends "Note" to the Inbox | ||
And "Note" is in our Inbox | ||
And we repost the object "Note" | ||
Then the request is accepted | ||
Then we repost the object "Note" | ||
Then the request is rejected with a 409 |
This file contains 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
This file contains 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
This file contains 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
This file contains 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