mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Subscribing to a topic or hub sets the urls.
This commit is contained in:
parent
f0e9e25a1b
commit
453e773c07
1 changed files with 4 additions and 1 deletions
|
@ -33,7 +33,10 @@ class PushSubscriptionManager(models.Manager):
|
|||
subscription, created = self.get_or_create(feed=feed)
|
||||
signals.pre_subscribe.send(sender=subscription, created=created)
|
||||
subscription.set_expiration(lease_seconds)
|
||||
|
||||
subscription.topic = topic
|
||||
subscription.hub = hub
|
||||
subscription.save()
|
||||
|
||||
if callback is None:
|
||||
# try:
|
||||
# callback_path = reverse('push-callback', args=(subscription.pk,))
|
||||
|
|
Loading…
Add table
Reference in a new issue