-
-
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 handler for incoming likes (#33)
refs [AP-283](https://linear.app/tryghost/issue/AP-283/handle-incoming-likes) Added handler for incoming likes that adds the like activity to the actors inbox and persists any relevant data to the database.
- Loading branch information
Showing
4 changed files
with
92 additions
and
0 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,10 @@ | ||
Feature: Like(Article) | ||
We want to handle Like(Article) activities in the Inbox | ||
|
||
Scenario: We recieve a Like(Article) activity from someone we follow | ||
Given an Actor "Alice" | ||
And an Actor "Bob" | ||
And a "Create(Article)" Activity "A" by "Alice" | ||
And a "Like(A)" Activity "L" by "Bob" | ||
When "Bob" sends "L" to the Inbox | ||
Then "L" is in our Inbox |
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