mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-06 00:43:19 -06:00
[feature] Add requested_by to relationship model (#2672)
* [feature] Add `requested_by` to relationship model * whoops, missed some tests
This commit is contained in:
parent
65a273bc39
commit
8cafa6b74b
9 changed files with 121 additions and 2 deletions
|
|
@ -596,6 +596,14 @@ func (suite *RelationshipTestSuite) TestAcceptFollowRequestOK() {
|
|||
suite.False(relationship.Following)
|
||||
suite.True(relationship.Requested)
|
||||
|
||||
// Check the other way around too; local_account_2
|
||||
// should have requested_by true for admin now.
|
||||
inverse, err := suite.db.GetRelationship(ctx, targetAccount.ID, account.ID)
|
||||
if err != nil {
|
||||
suite.FailNow(err.Error())
|
||||
}
|
||||
suite.True(inverse.RequestedBy)
|
||||
|
||||
followRequestNotification := >smodel.Notification{
|
||||
ID: "01GV8MY1Q9KX2ZSWN4FAQ3V1PB",
|
||||
OriginAccountID: account.ID,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue