summaryrefslogtreecommitdiff
path: root/hamnadmin
AgeCommit message (Collapse)Author
2019-07-05Unicode fixes in old migrationsMagnus Hagander
Missed to update the migrations in the py3 update
2019-06-28Band-aid fix for feed as wellMagnus Hagander
2019-06-28Band-aid fix for broken html tidy parsingMagnus Hagander
2019-06-28Replace old version of Tidy with new oneMagnus Hagander
2019-06-28Fix integer division for python 3Magnus Hagander
2019-06-28Import latest version of community auth pluginMagnus Hagander
2019-06-28Proeperly use requests to format URL parametersMagnus Hagander
2019-06-28Switch to using requests for varnish callsMagnus Hagander
2019-06-28Ensure list is printed as list in python 3Magnus Hagander
2019-06-28Fix has_key accesses for python 3Magnus Hagander
2019-06-28Fix unicode and printing for python 3Magnus Hagander
2019-06-28Update exception handling for python 3Magnus Hagander
2019-06-28Fix imports for python 3Magnus Hagander
2018-09-23Make sort by name the default behaviour for teamsMagnus Hagander
2018-06-26Fix incorrect string formatting specifierMagnus Hagander
2018-03-25Fix template loaders for django 1.11Magnus Hagander
Seems django 1.11 automatically enables caching template loader, which of course breaks the ability to make any changes to the pages of a website without restarting it. And there is no way to turn it off other than to explicitly configure individual loders (the logic to turn it on in non-debug configurations is hardcoded and cannot be changed).
2018-03-19Detect excessive blog fetchesMagnus Hagander
If a single fetch from a blog grabs more than <n> entries (the default being 4), this usually indicates a misconfigured blog and it will end up spamming the outgoing feed and twitter, even if later corrected. For that reason, when this happens, mark all the newly fetched entries as hidden, and send a notification as such. In the event that they are actually correct, the user can go in and manually unhide those entries, which will make them show up again.
2018-03-19Fix tracing messagesMagnus Hagander
Shouldn't use print directly, since it doesn't respect the verbosity setting.
2018-03-19Automatically follow http->https redirectsMagnus Hagander
We only follow the redirect if the URL is *exactly* the same except it has https intead of http in it. But this is a very common scenario these days, so let's simplify that one. In particular, it makes no sense to re-moderate a blog after that change has been made.
2018-03-19Treat http:// and https:// guid as being the same when fetchingMagnus Hagander
This means that if the same blog post shows up both under http:// and https:// (for example when somebody changes their URL from http to https, but it still contains the old posts), we will treat them as being the same and not fetch a second copy of it. We handle both http->https (common) and https->http (would probably indicate a misconfiguration) scenarios.
2018-02-25Remove old leftover debugging codeMagnus Hagander
2018-02-25Replace render_to_response with renderMagnus Hagander
Required in newer django, and still works in the old one.
2018-02-25Update URL configurations for newer djangoMagnus Hagander
2018-02-25Remove app not usedMagnus Hagander
2018-02-25Update template configuration for newer djangoMagnus Hagander
2018-02-08Don't just delete successful logsMagnus Hagander
MOst of what we end up keeping aren't..
2018-02-08Add command to purge old logsMagnus Hagander
2017-12-09Add missing importMagnus Hagander
2017-12-08Properly format email headers with non-asciiMagnus Hagander
When sending an email to non-ascii names, the actual email address should not be part of the encoded section. It should have a separate section that's not encoded. Ported over from the pgeu install
2017-11-18Encode URLs to handle even worse formatted twitter linksMagnus Hagander
2017-11-18Validate twitter accounts when submitting a new blogMagnus Hagander
Do this by connecting to the twitter API and actually validate both that the account exists, and that it's not protected. Protected accounts will cause the follower-sync script to keep trying over and over again for following, and there's not any point in promoting those anyway. This adds a dependency on requests_oauthlib, but that's already used in other pgweb projects so shouldn't be a problem.
2017-11-18Don't crash when feedurl is not givenMagnus Hagander
Instead, give a proper error message as intended.
2017-05-25Update blogurls from the contents of the feedsMagnus Hagander
If somebodys blog url changes in the feed, pick it up and store the new one. Also send an email to the person letting them know it happened, as well as a notice to moderators. But don't require new moderation when it happens, just do manual post-moderation in the event that something goes wrong.
2017-05-25Decode emails in the queueMagnus Hagander
Makes it easier to do debugging. Patch copied over from the pgeu repository.
2016-11-22Planet postgresql is now httpsMagnus Hagander
2016-11-20Use https for postgr.esMagnus Hagander
2016-08-16Don't re-approve a blog that was already approvedMagnus Hagander
This will cause extra emails to be sent, which isn't very user-friendly.
2016-04-11Set a default socket timeout of 10 secondsMagnus Hagander
Any feed that doesn't complete the socket operation in 10 seconds will fail - we'll still retry it on the next run of course.
2016-03-29Cap blog entries at todays dateMagnus Hagander
This avoids cases where a blog entry might be unintentionally (or intentionally) set with a date in the future in the incoming RSS feed and as such stays at the frontpage of planet until that date is reached. Instead, whenever something is parsed to be in the future, set the post date to the time of the parsing (because it clearly exists at this time).
2016-03-29Fix indentation that caused logic errorMagnus Hagander
We updatet he newest entry date in other ways as well, but this code clearly didn't run.
2016-03-21Fix typoMagnus Hagander
Reported by David Rowley, though Alvaro
2016-03-21Don't put a space before P in shortlinksMagnus Hagander
Sideeffect of some re-indenting, any short URL that had a P in it would get %20P instead, making it not work. Oops.
2016-03-03Source header images locallyMagnus Hagander
Previously these were loaded from www.postgresql.org, which caused a mixed-content warning when using the registration interface.
2016-02-16Remove templates no longer usedMagnus Hagander
2016-02-16Log is not a separate page anymore, so fix linksMagnus Hagander
Also add an anchor on the edit page to deal with it
2016-02-15Set title fields for forms and pagesMagnus Hagander
2016-02-15Link to moderation admin viewMagnus Hagander
Don't encourage using the django admin view.
2016-02-12Fix accidentaly reversed conditionMagnus Hagander
Blogs would display as error in list and warning on the details page, and the other way around. Oops.
2016-02-11Add specific team admin to list more details in admin viewMagnus Hagander
2016-02-11Remove leftover debugging codeMagnus Hagander