mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 05:04:27 +00:00
13 lines
381 B
Python
13 lines
381 B
Python
|
import app # noqa: F401 # here to init the backend
|
||
|
from core.activitypub import _actor_hash
|
||
|
from core.shared import MY_PERSON
|
||
|
from core.shared import p
|
||
|
from core.tasks import Tasks
|
||
|
from utils.local_actor_cache import is_actor_updated
|
||
|
|
||
|
h = _actor_hash(MY_PERSON, local=True)
|
||
|
if is_actor_updated(h):
|
||
|
Tasks.send_actor_update()
|
||
|
|
||
|
p.push({}, "/task/cleanup", schedule="@every 1h")
|