link preview v1

This commit is contained in:
Joren de Graaf
2026-10-21 15:25:33 +02:00
parent 4948d7645e
commit 9a5210a48f
30 changed files with 1173 additions and 4 deletions
@@ -0,0 +1,12 @@
from django.core.management.base import BaseCommand, CommandError
from knowledge.notifications import NotificationError, rediscover_once
class Command(BaseCommand):
help = 'Send at most one eligible Knowledge Library ntfy reminder, subject to opt-in, quiet hours and weekly limit.'
def handle(self, *args, **options):
try:
self.stdout.write(rediscover_once())
except NotificationError as exc:
raise CommandError(str(exc)) from exc