Page MenuHomePhabricator

Paste query results do not display actual length of listed Pastes (but always "5 lines" if Paste is longer)
Closed, ResolvedPublic

Description

Steps to reproduce:

  1. Go to https://secure.phabricator.com/paste/query/active/ (version as of now)
  2. Look at the right of Paste content previews, where Paste creation date, length, and author are listed.

Expected behavior:
Paste length is displayed correctly.

Actual behavior:
Any Pastes with more than 5 lines display "5 lines". Might be the preview length on that very page instead of their actual length.

Upstreamed from https://phabricator.wikimedia.org/T140324 (and pretty minor...)

Event Timeline

michaeljs1990 added a subscriber: michaeljs1990.

I put up a diff that fixes this however I'm not sure if it's the correct solution.

michaeljs1990 triaged this task as Wishlist priority.Aug 28 2016, 6:44 PM

D16465 has details on how to move forward here if anyone wants to steal it before @michaeljs1990 gets back to it.