-
-
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.
refs [AP-608](https://linear.app/ghost/issue/AP-608/ghost-does-not-work-with-lemmy-or-wordpress) Added handling for `Group` announced `Create` activities so that these activities are recorded processed by the service. Activities are usually only announced as part of Group federation
- Loading branch information
Showing
11 changed files
with
292 additions
and
44 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
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
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,26 @@ | ||
Feature: Handling activities announced by a Group | ||
Background: | ||
Given an Actor "Person(Alice)" | ||
And an Actor "Group(Wonderland)" | ||
And we follow "Wonderland" | ||
And the request is accepted | ||
And a "Accept(Follow(Wonderland))" Activity "Accept" by "Wonderland" | ||
And "Wonderland" sends "Accept" to the Inbox | ||
And "Accept" is in our Inbox | ||
|
||
Scenario: We recieve a Create(Article) activity announced by a Group | ||
Given a "Create(Article)" Activity "Create" by "Alice" | ||
And a "Announce(Create)" Activity "Announce" by "Wonderland" | ||
When "Wonderland" sends "Announce" to the Inbox | ||
Then "Create" is in our Inbox | ||
And "Announce" is not in our Inbox | ||
|
||
Scenario: We recieve a Create(Article) activity with a tampered object announced by a Group | ||
Given an Actor "Person(Bob)" | ||
And a "Note" Object "Spam" by "Bob" | ||
And a "Article" Object "Article" by "Alice" | ||
And a "Create(Article)" Activity "Create" by "Alice" | ||
And "Create" has Object "Spam" | ||
And a "Announce(Create)" Activity "Announce" by "Wonderland" | ||
When "Wonderland" sends "Announce" to the Inbox | ||
Then "Create" is in our Inbox with Object "Article" |
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
Oops, something went wrong.