refresh expiring push subscription sooner

This commit is contained in:
Kyle Mahan 2015-04-02 02:38:09 +00:00
parent 6aebe0287d
commit 482ca0ca83
2 changed files with 4 additions and 2 deletions

View file

@ -187,7 +187,7 @@ def check_push_subscription(session, feed, response):
topic = next((link['href'] for link in links topic = next((link['href'] for link in links
if 'self' in link['rel']), None) if 'self' in link['rel']), None)
if ((expiry and expiry - datetime.datetime.utcnow() <= UPDATE_INTERVAL) if ((expiry and expiry - datetime.datetime.utcnow() <= UPDATE_INTERVAL_PUSH)
or hub != old_hub or topic != old_topic or not feed.push_verified): or hub != old_hub or topic != old_topic or not feed.push_verified):
feed.push_hub = hub feed.push_hub = hub
feed.push_topic = topic feed.push_topic = topic

View file

@ -48,8 +48,10 @@
<form action="{{ url_for('.login') }}" method="POST"> <form action="{{ url_for('.login') }}" method="POST">
<input type="text" name="me" placeholder="mydomain.com" /> <input type="text" name="me" placeholder="mydomain.com" />
<input type="hidden" name="next" placeholder="{{ request.path }}" /> <input type="hidden" name="next" placeholder="{{ request.path }}" />
<button type="submit">Login</button> <button style="text-align: right;" type="submit">Login</button>
</form> </form>
Your Woodwind account is tied to your personal domain name. Check out IndieWebCamp's <a href="http://indiewebcamp.com/Getting_Started" target="_blank">Getting Started</a> page for details.
{% endif %} {% endif %}
{% block header %}{% endblock %} {% block header %}{% endblock %}