mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-15 11:14:28 +00:00
Fix flake8 warning
This commit is contained in:
parent
f0264241ee
commit
08077b58f0
1 changed files with 4 additions and 4 deletions
|
@ -483,7 +483,6 @@ class Accept(BaseActivity):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class Undo(BaseActivity):
|
class Undo(BaseActivity):
|
||||||
ACTIVITY_TYPE = ActivityTypes.UNDO
|
ACTIVITY_TYPE = ActivityTypes.UNDO
|
||||||
ALLOWED_OBJECT_TYPES = [ActivityTypes.FOLLOW, ActivityTypes.LIKE, ActivityTypes.ANNOUNCE]
|
ALLOWED_OBJECT_TYPES = [ActivityTypes.FOLLOW, ActivityTypes.LIKE, ActivityTypes.ANNOUNCE]
|
||||||
|
@ -509,7 +508,8 @@ class Undo(BaseActivity):
|
||||||
def _should_purge_cache(self) -> bool:
|
def _should_purge_cache(self) -> bool:
|
||||||
obj = self.get_object()
|
obj = self.get_object()
|
||||||
try:
|
try:
|
||||||
# Receiving a undo activity regarding an activity that was mentioning a published activity should purge the cache
|
# Receiving a undo activity regarding an activity that was mentioning a published activity
|
||||||
|
# should purge the cache
|
||||||
return obj._undo_should_purge_cache()
|
return obj._undo_should_purge_cache()
|
||||||
except NotImplementedError:
|
except NotImplementedError:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in a new issue