Page MenuHomePhabricator

Fix a stray comma on File previews
ClosedPublic

Authored by epriestley on Dec 11 2014, 6:29 PM.
Tags
None
Referenced Files
F19032253: D10974.diff
Tue, Nov 25, 5:40 AM
F17950694: D10974.id26351.diff
Aug 1 2025, 12:38 AM
F17935335: D10974.id.diff
Jul 30 2025, 11:19 PM
F17917737: D10974.diff
Jul 30 2025, 12:04 AM
F17846010: D10974.id26351.diff
Jul 27 2025, 4:18 AM
F17843435: D10974.id.diff
Jul 27 2025, 12:53 AM
F17818263: D10974.diff
Jul 26 2025, 12:15 AM
Unknown Object (File)
Jul 1 2025, 5:56 PM
Subscribers

Details

Reviewers
btrahan
Commits
Restricted Diffusion Commit
rPbc5598865f62: Fix a stray comma on File previews
Summary

There's a comma to the lower-left of my profile picture here:

Screen_Shot_2014-12-11_at_10.27.37_AM.png (156×417 px, 15 KB)

This is on a page like https://secure.phabricator.com/F248948

What's happening is that some render() method is returning a valid result like array($stuff, null). This is getting passed to JS as an array, which is implicitly join()'ing it into a string, adding a comma.

Instead, make sure we render these to strings on the server side before shipping them to the client.

Test Plan

No more comma on file previews.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Fix a stray comma on File previews.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
btrahan edited edge metadata.
This revision is now accepted and ready to land.Dec 11 2014, 6:30 PM
This revision was automatically updated to reflect the committed changes.