summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2025-06-16Upgrade plugin to community auth v3HEADmasterMagnus Hagander
2024-04-10Updates for django 4.2Magnus Hagander
2024-04-10Backfill migration with changed orderingMagnus Hagander
This was missed in dbdbe6a when ordering of moderator notes was changed on the model.
2024-04-02Use an appropriate top title when adding a new feed.Dave Page
2024-04-02Use an appropriate title when adding a new feed.Dave Page
2024-04-02Don't show moderation notes when adding a new field.Dave Page
2024-04-01Add explicit redirect after adding a moderator noteMagnus Hagander
This way we can avoid potential duplicate-postings on a refresh, and it makes tracking the code a bit more clear.
2024-04-01Don't redirect to complete page on invalid formMagnus Hagander
Indentation missed in a12e1b97 made it try that. Instead, it should fall through and render the form, which will then show the proper error message.
2024-03-19Fix ordering of notes so they are more naturally readable.Dave Page
2024-03-19Fix ordering of notes so they are more naturally readable.Dave Page
2024-03-19Add the ability to include moderator notes on feeds.Dave Page
2023-11-23Remove twitteruser field from blog registrationMagnus Hagander
We can't verify it anymore, and this blocks anybody from saving a blog that has twitteruser on it. Twitter does not provide any way to verify the existance of a user anymore, other than paying $$$$. So we'll just cut the field for now, to make things work again. This does not remove *existing* registrations of twitter users, but it does make it impossible to register new ones. Issues reported by several different people.
2023-08-24HTML un-escape Twitter messages.Dave Page
2023-07-17Fix over-enthusiastic search/replace in previous commitMagnus Hagander
2023-07-14Fix templates for upgrade to bootstrap 4Magnus Hagander
Commit c9f68d5f upgraded the site to bootstrap 4, amongst other things, but completely missed that "labels" are now called "badges", and thus need new CSS classes.
2023-06-26Update twitter posting to use api v2Magnus Hagander
This is the only API version supported by free clients now. Also, the list syncing doesn't work, because that requires a paid client. We don't care about that one for now.
2023-06-07Sync up to latest version of pgweb auth pluginMagnus Hagander
2023-05-05Add to log message the old blogurlStephen Frost
For debugging, it's helpful to know what the old value was of a given blogurl, to make sure we are updating things correctly and only what should be getting updated is getting updated.
2023-05-05Always set new_blogurl if blogurl different from feed.linkStephen Frost
Previously, we set blogurl if the prior blogurl was set to empty-string ('') but that change wasn't picked up as part of what needed to be updated, so instead always use new_blogurl if we need to set the blogurl as this ensures that we'll realize there was a change and will update the database accordingly. At the same time, also send an email in every case that the blogurl is changed, even when it's being changed from being empty. This is perhaps a bit noisy but it's been broken for so long that it's worth it to make sure people are aware that it's now working and folks don't register new blogs over and over again anyway. Lastly, move the block that does the update and sets the new blogurl value up higher so that if a new blogurl is set then the emails that are generated from that run will use that new blogurl instead of the old one (which could be confusing).
2023-05-03Add override styles for <h*> tags in planet postsMagnus Hagander
It looks bad on the site when the headlines inside posts are larger than the headlines outside them. So force them down to a smaller sice. It's not very pretty, but it's better than before. More could definitely still be done to separate wrapping from content more.
2023-01-23Blind attempt to restore the old image sanitisation.Dave Page
2023-01-11Name the exception, so we will actually have it to print.Stephen Frost
2023-01-11Log if there is an exception when setting blogurlStephen Frost
2023-01-05Add a border for clarity, per JonathanDave Page
2023-01-05Update Planet to the modern postgresql.org website styling.Dave Page
2022-10-05Properly tag 404s from redirector with xkeysMagnus Hagander
If the 404s are beceause an item is hidden, we need them to be tagged with the appropriate xkeys so we can automatically unhide them.
2022-10-05Fix silly copy/paste errorMagnus Hagander
2022-10-05Band-aid fix for newer python in imported moduleMagnus Hagander
2022-10-05Store the id of the tweet when a post has been tweetedMagnus Hagander
2022-10-05Add xkey and other headers for redirect, use for purgeMagnus Hagander
This way we'll purge the redirect whenever a post is hidden, so we'll stop redirecting to it.
2022-09-06Spelling correctionStephen Frost
retreiving -> retrieving
2021-11-07Add DEFAULT_AUTO_FIELD for Django 3.2Magnus Hagander
2021-11-06Spelling fixMagnus Hagander
Spotted by Jonathan Katz
2021-08-17Force timestamp check into join conditionMagnus Hagander
Unfortunately, 6c44b60 very clearly de-optimized the query when running on a system with millions of log-rows. Oops. So force the django ORM to put the filter on the join clause thereby making it possible to use an index, which should make it actually optimized.
2021-08-17Don't show list of personal teams in admin viewMagnus Hagander
In admin view we are looking at others people's blogs, so it is confusing to have the bottom part of the page reflect the administrators personal setup.
2021-08-17Optimize some db queriesMagnus Hagander
Basically make django generate the joins/prefetches/subqueries instead of firing of hundreds of queries on the db. Probably doesn't actually matter that much given how seldom these queries are run, but still.
2021-08-17Show blog username/email in listingMagnus Hagander
For the regular user view, just show which account and email is used for info. For the administration view, show the username and email for each individual blog, to help with tracking down misbehaving blogs. And finally, in the moderation view, also include the email (it already had the account name) to make it easier to contact an author.
2021-06-01Don't forward links for posts that have been hiddenMagnus Hagander
2021-01-17Set proper mail headers to indicate auto-generated mailsMagnus Hagander
2020-12-25Have redirector generate a robots.txt file if requestedMagnus Hagander
2020-12-25Generate proper 404's in redirectorMagnus Hagander
Instead of generating a 500 error, because that is both wrong and will prevent caching.
2020-09-01Fix text for top lists time rangeMagnus Hagander
We are counting the number of posts in the past two months, but the website said 1 month (and has since forever). Spotted by Bruce Momjian
2020-08-30Fix title for field lastgetMagnus Hagander
In particular it was terribly labeled in the moderation interface. Make it better and more consistent between the two interfaces.
2020-08-11Import latest version of the community auth pluginMagnus Hagander
This includes receiving updates using the new push api.
2020-07-11Make use of the lastsuccess parameter to improve some messagesMagnus Hagander
In particular, it is interesting to know when a blog that has failed multiple times has actually succeeded more recent than the most recent failure. So show this both on the dashbaord and on the individual blog details, and include it in the email that's sent when a blog generates large amounts of errors.
2020-07-11Track timestamp for last successful fetch of a blogMagnus Hagander
2020-07-11Only update actually changed fields in most placesMagnus Hagander
2020-07-11Misc fixes to make pep8 happyMagnus Hagander
Mostly whitespace fixes, but also some bare-exception fixes. Add a setup.cfg that specifies which pep8 settings we normally run with.
2020-07-11Clean up importsMagnus Hagander
Remove unused imports, and stop using "import *"
2020-07-11Fix incorrect classnameMagnus Hagander