kopia lustrzana https://gitlab.com/jaywink/federation
Fix validate method signature for Accept and Like (currently unsupported outbound) objects.
rodzic
1e5516ef60
commit
942fa333af
|
@ -1209,7 +1209,7 @@ class Like(Activity, base.Reaction):
|
|||
id = fields.Id()
|
||||
reaction = fields.String(diaspora.like)
|
||||
|
||||
def validate(self):
|
||||
def validate(self, direction='inbound'):
|
||||
pass
|
||||
|
||||
class Meta:
|
||||
|
@ -1218,7 +1218,7 @@ class Like(Activity, base.Reaction):
|
|||
|
||||
# inbound Accept is a noop...
|
||||
class Accept(Create, base.Accept):
|
||||
def validate(self):
|
||||
def validate(self, direction='inbound'):
|
||||
pass
|
||||
|
||||
class Meta:
|
||||
|
|
Ładowanie…
Reference in New Issue