~sircmpwn/lists.sr.ht

cdbc89f5e282fcdc621fb8629a26719338512b45 — Drew DeVault 4 months ago b37cb85 0.38.6
Fix 500 on incorrectly labelled patch threads

This often happens with hg patchsets which are not yet understood by
libgit2.
2 files changed, 1 insertions(+), 3 deletions(-)

M listssrht/blueprints/archives.py
M listssrht/templates/thread.html
M listssrht/blueprints/archives.py => listssrht/blueprints/archives.py +0 -2
@@ 182,8 182,6 @@ def thread(owner_name, list_name, message_id):
            owner_name=owner_name,
            list_name=list_name,
            message_id=thread.thread.message_id) + "#" + thread.message_id)
    # TODO: multi-order sort by patch version and index, for emails which
    # arrive out of order

    messages = (Email.query
            .filter(Email.thread_id == thread.id)

M listssrht/templates/thread.html => listssrht/templates/thread.html +1 -1
@@ 137,7 137,7 @@
            >{{ msg.created | date }}</a>
          </div>
          <div class="msg-info">
            {% if msg.is_patch %}
            {% if msg.patch() != None %}
            <span class="info">
              {% set stats = diffstat(msg) %}
              Patch: