Follow request approve/refuse logic

This commit is contained in:
Eliot Berriot 2018-04-04 23:12:41 +02:00
parent cb9309c298
commit e0dcb87f15
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
4 changed files with 97 additions and 1 deletions

View file

@ -97,6 +97,15 @@ class FollowFactory(factory.DjangoModelFactory):
)
@registry.register
class FollowRequestFactory(factory.DjangoModelFactory):
target = factory.SubFactory(ActorFactory)
actor = factory.SubFactory(ActorFactory)
class Meta:
model = models.FollowRequest
@registry.register(name='federation.Note')
class NoteFactory(factory.Factory):
type = 'Note'