1. 07 Apr, 2020 1 commit
    • dougmellon's avatar
      Remove aria-label from divs · b707e2b9
      dougmellon authored
      This is a recommendation from the W3C validator: "Don't use aria-label
      or aria-labelledby on a span or div unless its given a role."
  2. 03 Apr, 2020 1 commit
    • Deimos's avatar
      Monitoring server: add blackbox exporter · f2c0b68f
      Deimos authored
      This is a prometheus exporter that allows checking IPv4 and IPv6
      responses, among other things. This sets it up to make sure that the
      site is responding over both IPv4 and IPv6, so that I can monitor and
      set up an alert if either stops working.
  3. 25 Mar, 2020 1 commit
    • Deimos's avatar
      Treat scheduled-topic title/markdown as Jinja · 284c3cfd
      Deimos authored
      This probably isn't particularly safe, but it's fine since I'm the only
      one that can create or edit scheduled topics for now. The only available
      variable so far is current_time_utc.
  4. 23 Mar, 2020 1 commit
  5. 21 Mar, 2020 2 commits
  6. 19 Mar, 2020 4 commits
  7. 18 Mar, 2020 1 commit
  8. 17 Mar, 2020 2 commits
    • Deimos's avatar
      Add global autocomplete tags · 3f1decb2
      Deimos authored
      This is kind of hacky again (and shouldn't contain the coronavirus tag
      over the long term), but makes sure that the "spoiler", "nsfw", and
      "coronaviruses.covid19" tags are always offered as autocomplete options,
      no matter how common they are in the topic's group.
    • Deimos's avatar
      TEMP: Add some hacky coronavirus "views" · 355dd9d3
      Deimos authored
      This adds two links at the top of the home page that go to different
      "views" - one includes only topics related to the coronavirus, while the
      other filters out all coronavirus topics.
      For the purposes of these views, a "coronavirus topic" is one that is
      either in the ~health.coronavirus group, or has coronaviruses.covid19
      This is very hacky and will only work on the main tildes.net site due to
      hardcoded group name and tag. I'm okay with that.
  9. 13 Mar, 2020 1 commit
    • Deimos's avatar
      Update groups page layout + show activity stats · 1c739d97
      Deimos authored
      This replaces the groups page with a new list style that doesn't include
      the ability to subscribe/unsubscribe directly on the page, and also
      shows approximate activity statistics (daily topics/comments) for each
  10. 09 Mar, 2020 1 commit
  11. 06 Mar, 2020 1 commit
  12. 05 Mar, 2020 4 commits
    • Deimos's avatar
      Fix autocomplete chip X "ends with" conflicts · c8f86977
      Deimos authored
      Let's try this again without the regex.
      Clicking the X button in an autocomplete chip could inadvertently remove
      the wrong tag (and cause a weird "merging" behavior) if another tag
      ended with the same text as the one being removed. For example, if a
      post had both "one.two" and "two" tags and you clicked the X button on
      the "two".
    • Deimos's avatar
      Revert "Fix autocomplete chip X "ends with" conflicts" · 6e610be3
      Deimos authored
      This reverts commit 83ce0824.
    • Deimos's avatar
      Fix autocomplete chip X "ends with" conflicts · 83ce0824
      Deimos authored
      Clicking the X button in an autocomplete chip could inadvertently remove
      the wrong tag (and cause a weird "merging" behavior) if another tag
      ended with the same text as the one being removed. For example, if a
      post had both "one.two" and "two" tags and you clicked the X button on
      the "two".
    • Deimos's avatar
      Minor updates to Financials and donation goal · c5492cf4
      Deimos authored
      Just a couple relatively minor updates to the financial stuff:
      * Removed the "is_approximate" column on the table and just added a more
        general note about most of the amounts being approximate. It was more
        annoying to worry about than meaningful.
      * Some style/layout/wording tweaks to the donation goal to try to make
        it a little more obvious that this is a long-term sustainability goal.
  13. 02 Mar, 2020 2 commits
  14. 29 Feb, 2020 2 commits
    • Deimos's avatar
      Rework permissions/ACL system · 94b9e1bf
      Deimos authored
      This is a major rework of the permissions system to enable various new
      capabilities and clean up some of the oddities that were there.
      - The concept of "admin" permission is removed. All permissions must be
        granted individually.
      - Permissions can now be granted on a group-specific level, such as
        giving a user the ability to tag topics only in a specific group.
      - Permissions can also be denied for a specific group (or all groups),
        enabling uses like "tag topics in all groups except ~music".
      - Removed the two cases where "all permissions" were granted: users on
        themselves and the sender and recipient on messages. This was
        dangerous, we should always grant permissions explicitly.
      - Eliminated all the granular permissions for changing a user's settings
        (which were all granted implicitly), and replaced with an overall
        "change_settings" permission.
    • Deimos's avatar
      Update cleanup script for new permissions table · 9ab70c44
      Deimos authored
  15. 28 Feb, 2020 1 commit
    • Deimos's avatar
      Move user permissions into their own table · 62b0adc9
      Deimos authored
      This is a bit of an odd commit: it adds a user_permissions table that
      has capabilities that are not yet usable. Specifically, the table allows
      setting DENY permissions as well as restricting permissions to an
      individual group, but neither of those work yet. I want to make sure
      that the existing, limited permission system seems to transfer over
      properly before adding the additional complexity for those.
      The Alembic data migrations for this commit is fairly ugly, but seem to
      work okay.
  16. 26 Feb, 2020 1 commit
    • Deimos's avatar
      Strip trailing periods from topic titles · 2532df01
      Deimos authored
      Note that this will also prevent a title from ending with "...". I did a
      search for all titles that ended in that, and none of them seemed
      essential (and probably should have been removed), so I think this
      should be fine.
  17. 20 Feb, 2020 1 commit
  18. 13 Feb, 2020 2 commits
    • Deimos's avatar
      Reload gunicorn when site-icons CSS updates · 89c7c13b
      Deimos authored
      This starts using webassets for the site-icons.css file inside the base
      template so that a cache-busting "version" string is added after the
      filename as a query variable (as was already being done with the other
      CSS and JS files).
      It also creates a new service that's triggered by a "path changed" event
      on site-icons.css, which causes gunicorn to reload. This should mean
      that whenever the site-icons.css file is updated by the cronjob that
      generates it, gunicorn will automatically reload and update the
      cache-busting string for the CSS file, causing users' browsers to update
      to the newest version.
    • Deimos's avatar
      Vagrantfile: pin Salt version to 2019.2.3 · 4dc99d9f
      Deimos authored
      The new version of Salt ("3000") seems to have a number of bugs,
      including not being able to handle "unless" checks, which the Tildes
      states use frequently. Because of this, creating a new dev environment
      currently doesn't work. This pins Salt to the previous stable version
      for now.
      Here's the relevant bug for "unless" specifically:
      And the overall release notes:
  19. 11 Feb, 2020 3 commits
  20. 10 Feb, 2020 2 commits
  21. 09 Feb, 2020 6 commits