1. 21 Mar, 2019 8 commits
  2. 19 Mar, 2019 3 commits
    • Deimos's avatar
      Fix (mostly) notifications on no-sidebar layout · 18dabdfe
      Deimos authored
      This is still somewhat broken on very narrow screens if they have both
      comment and message notifications, but that should be pretty uncommon.
    • Deimos's avatar
      Don't linkify group refs starting with a number · cea20085
      Deimos authored
      This was a little more strict before and would only skip linkification
      if the entire path was digits and/or periods. However, I've seen it
      still hitting some people if they write things like "~100k". It's very
      unlikely that we're ever going to have a top-level group with a name
      starting with a number, so let's just skip linkification for all
      instances where a number is the first thing.
    • Deimos's avatar
      Rearrange notifications to prevent header resizing · 607f1726
      Deimos authored
      Previously, the site's main content would be pushed down a little when
      you have new comment notifications or messages. This moves them to the
      left of the username instead, and uses a different flexbox arrangement
      inside the sidebar when it's collapsed on smaller screens.
  3. 18 Mar, 2019 1 commit
  4. 16 Mar, 2019 6 commits
    • Deimos's avatar
      Embedly consumer: switch to get_appsettings() · 39665058
      Deimos authored
      Using bootstrap() seems to cause issues with re-declaring the Prometheus
      metrics (which happens in the tweens that we don't really need or want
      anyway). There might be better ways to do this including not attaching
      the tweens for scripts, but this seems to work fine (and was already
      being done this way in the YouTube API consumer).
    • Deimos's avatar
      Wipe old metadata from link topics on link change · 18002b12
      Deimos authored
      This is a bit ugly (and probably the wrong spot to do it), but we need
      to wipe the old metadata before adding in new stuff from the
      re-scrape(s). Otherwise, if we do something like change a YouTube video
      to an article, the duration of the video will still be left in the
      metadata even though it's no longer relevant.
    • Deimos's avatar
      Re-queue topic for some consumers on link edit · bd350495
      Deimos authored
      After editing a topic's link, we want to re-process it through the
      scrapers, setting the domain in its metadata, etc.
    • Deimos's avatar
      Move url-transformation application to TopicSchema · 2fe4743b
      Deimos authored
      This was only being done when a new topic was created before, which
      meant that if a topic's link was edited, the new link wouldn't go
      through the transformation process (and we do want it to).
    • Deimos's avatar
      Add tool for editing topic links · 6b2afd68
      Deimos authored
    • Deimos's avatar
      Theme cookie tween: only affect GET requests · 7c53b098
      Deimos authored
      I was seeing some strange behavior from this tween on non-GET requests,
      where a huge number of Set-Cookie headers were being added. I'm not sure
      exactly what was causing this, but it's not necessary to do on non-GET
      requests anyway, so this should be safer.
  5. 14 Mar, 2019 1 commit
  6. 12 Mar, 2019 1 commit
    • Deimos's avatar
      Stop using a spritesheet for site-icons · f4c4973d
      Deimos authored
      The site-icons spritesheet has already become unwieldy - it's almost
      1MB, is mostly rarely-needed icons, and needs to be fully replaced and
      re-downloaded whenever a new icon is added. With HTTP/2 now being widely
      supported, spritesheets seem to be mostly obsolete, and I probably never
      should have done it that way in the first place.
      This commit changes over to simply using individual icon images, and
      rebuilds the CSS file whenever new icons are downloaded. This new CSS
      file will probably be somewhat large, but should gzip extremely well.
      This probably still needs some work to support cache-busting on the CSS
  7. 11 Mar, 2019 3 commits
    • Deimos's avatar
      Add tween to set theme cookie · cd5db076
      Deimos authored
      This is mostly motivated by recently enabling the themes from the main
      Tildes site on the Docs and Blog. To support users maintaining their
      theme between sites, we need to set the domain field on the cookie,
      which we weren't doing previously. This tween will automatically convert
      "old" cookies to "new" ones, but unfortunately there's no way to
      determine whether their cookie has domain set or not, so we just need to
      set a new-style cookie every time.
      This also will start setting the cookie if they don't already have one,
      but have a default theme set on their account. This is necessary to be
      able to have the default theme carry over to Docs/Blog.
      In the future (maybe in a month or so), we can change this so that it
      only does the default-theme function.
    • Bauke's avatar
      Add domain parameter to theme cookie · b9142a04
      Bauke authored
    • Deimos's avatar
      Add SCSS module for rules used on static sites · bcd7383e
      Deimos authored
      We're going to make the static sites depend on the main site's
      stylesheet, but as part of that we need to be able to do a little bit of
      customization specific to them - specifically, being able to bring over
      the rules for setting up how lists and links look. Hopefully we
      shouldn't need to use this much, but this is reasonable for now.
  8. 08 Mar, 2019 2 commits
  9. 07 Mar, 2019 1 commit
    • Deimos's avatar
      Merge subsequent blockquotes · 52a95b11
      Deimos authored
      Markdown won't merge subsequent quoted paragraphs into a single
      blockquote unless the blank line between them also has a ">" on it. Most
      people don't expect this behavior when quoting a multi-paragraph
      section, and end up with a bunch of separated blockquotes.
      This should fix that issue by default, but still allows people to keep
      their blockquotes separated by adding at least one more newline between
      the two quoted paragraphs (so they have at least two blank lines), among
      various other methods.
  10. 06 Mar, 2019 2 commits
  11. 05 Mar, 2019 3 commits
    • Deimos's avatar
      Fix special tag formatting using "starts with" · 3cf67f15
      Deimos authored
      The special formatting for the "spoiler" tag was being applied to a post
      with the tag "spoiler attack", due to the way the CSS rules were
      written. This still isn't a great solution overall, but should fix those
      cases at least.
    • Deimos's avatar
      Open Graph tags: use full url, add description · e22881be
      Deimos authored
      It seems like the absolute url (without domain) is making the image not
      render in Twitter cards, and lack of a description is making some of the
      embeds look strange. We'll add a default description for now and look to
      override this soon.
    • Deimos's avatar
      Add some basic Open Graph meta tags · 952b97f2
      Deimos authored
      This should allow for some basic embeds to be displayed in
      Slack/Discord/Twitter/etc. when people link to Tildes urls. This should
      definitely be enhanced by adding things like descriptions to pages where
      that's relevant, but it's a reasonable start.
  12. 03 Mar, 2019 1 commit
    • Deimos's avatar
      Quote selected text inside comment reply form · 3e991919
      Deimos authored
      If the user has text selected inside a comment when they click the reply
      button, this will automatically start off the form with that text inside
      a blockquote. This only works if the selected text is inside another
      comment (for example it won't work if the text is in the sidebar or the
      topic itself), and only if the entirety of the selection is inside the
      same comment.
  13. 02 Mar, 2019 1 commit
    • Deimos's avatar
      Convert post buttons from <a> to <button> · e2c116b1
      Deimos authored
      This is a change I've been meaning to make for a while anyway for better
      semantic HTML and accessibility, and it ended up being necessary to be
      able to support some other updates as well.
  14. 01 Mar, 2019 2 commits
  15. 28 Feb, 2019 2 commits
  16. 27 Feb, 2019 1 commit
  17. 24 Feb, 2019 2 commits
    • Deimos's avatar
      Block moz.com dotbot from crawling the site · f87d8475
      Deimos authored
    • Deimos's avatar
      Rework theme system a little more · 541c69cc
      Deimos authored
      Nothing too significant in here, but it rearranges some of the theme
      initialization a little more, including making sure that each theme sets
      a number of "essential" colors. It also moves the default theme out into
      its own file, instead of having it at the bottom of _theme_base.scss for
      no particular reason.