diff --git a/pypkjs/timeline/__init__.py b/pypkjs/timeline/__init__.py index c77ea42..e4495a5 100644 --- a/pypkjs/timeline/__init__.py +++ b/pypkjs/timeline/__init__.py @@ -124,6 +124,7 @@ def handle_pin_create(self, pin, manual=False): pin_item.save(force_insert=not pin_item.exists()) pin_item.update_topics(pin['topicKeys']) self.logger.debug("saved pin") + self._send(pin_item) if next_notification is not None: if is_updating: TimelineItem.delete().where((TimelineItem.type == 'notification') & @@ -133,7 +134,6 @@ def handle_pin_create(self, pin, manual=False): for reminder in reminders: reminder.save(force_insert=True) self._send(reminder) - self._send(pin_item) def handle_pin_delete(self, pin): types = {