feat: notifications through Apprise (v2.14.0)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
815aff5443
commit
0465ff924b
19 files changed
+659
-17
No files matched your search
@@ -83,7 +83,9 @@ class WebmentionWorker(threading.Thread):
|
||||
self._last_processed = None
|
||||
self._lock_file = None
|
||||
from starpunk.avatars import Upkeep
|
||||
from starpunk.notifications import Sweeper
|
||||
self._avatar_upkeep = Upkeep()
|
||||
self._notifier = Sweeper()
|
||||
|
||||
def run(self):
|
||||
"""
|
||||
@@ -118,6 +120,11 @@ class WebmentionWorker(threading.Thread):
|
||||
# Local copies of response avatars (v2.13.0)
|
||||
self._avatar_upkeep.run(self.db_path, self.app.config['DATA_PATH'],
|
||||
self.site_url)
|
||||
# New responses to the owner (v2.14.0, ADR-074)
|
||||
try:
|
||||
self._notifier.run(self.app.config, self.db_path, self.site_url)
|
||||
except Exception as e:
|
||||
logger.error(f"Notification sweep failed: {e}", exc_info=True)
|
||||
|
||||
# Update last processed time
|
||||
if processed > 0:
|
||||
|
||||
Reference in new issue
Block a user