Commit Graph

8 Commits

Author SHA1 Message Date
Matthias Portzel b56e6be8c9 Calculate ETag for the index page using last modified date 2023-12-12 16:21:23 -05:00
Matthias Portzel 43abe234fb Add last_updated field to Thoughts 2023-12-12 13:30:43 -05:00
Matthias Portzel 8fe3852040 Save HTML for each thought to the DB for performance 2022-09-17 14:00:48 -04:00
Matthias Portzel 650a845611 Some small QoL changes 2022-09-17 07:25:29 -04:00
Matthias Portzel 1d89272d99 Don't strip whitespace from the start or end of thoughts
* Refactor to specify fields directly; shouldn't effect any other behavior
2022-08-01 18:46:15 -04:00
Matthias Portzel 93d7966db5 Add audio/mpeg, which the server uses for mp3 audio 2022-05-07 17:03:51 -04:00
Matthias Portzel 58dc4d62b0 Move to mp3 as the default audio type
* Also adds aac as an allowed audio type, fixing a bug where I could edit those posts
* To convert old audio to mp3, the following commands were used:
    ls *.aac | xargs -I {} bash -c 'ffmpeg -y -i {} -acodec mp3 $(echo {} | sed s/aac/mp3/)'
    for t in Thought.objects.filter(media__endswith=".aac"):
        t.file.name = f"{t.uuid}.mp3"
        t.save()
And ditto with m4a.
2022-05-07 16:46:16 -04:00
Matthias Portzel 1defa2b92c Rename 'main' to 'thoughts'
SQL to migrate the DB. Create migrations, migrate
`DELETE FROM django_content_type WHERE app_label='thoughts';`
`UPDATE django_content_type SET app_label='thoughts' WHERE app_label='main';`
`DROP TABLE thoughts_thought;`
`ALTER TABLE main_thought RENAME TO thoughts_thought;`
`DELETE FROM django_migrations WHERE app='main';`
Hopefully that's right, I'm not going to double check it or anything.
2022-04-30 13:34:39 -04:00