Pony.fm/app/models/Entities
Peter Deltchev 4b40c55512 T126: Fixed standard profiles appearing as archived profiles.
Summary:
The `is_archived` attribute on the `User` model did not explicitly come
back as any particular type. The resulting JSON had the string `"0"` for what's
meant to be a falsey value, but it evaluated to truthy in JS.

`is_archived` now has a getter which explicitly casts it to `boolean` before being
returned anywhere.

Test Plan: Manually tested in dev.

Reviewers: Feld0

Reviewed By: Feld0

Subscribers: #pony.fm

Projects: #pony.fm

Maniphest Tasks: T126

Differential Revision: https://phabricator.poniverse.net/D6
2015-06-25 21:06:00 -07:00
..
Album.php Implement appropriate behaviour to respond to tracks not being downloadable; fix album file size 2015-06-16 15:50:30 +01:00
Comment.php Many things 2013-08-01 03:57:08 -05:00
Favourite.php Intermediate commit 2013-08-18 22:39:29 -05:00
Follower.php Mega commit... Following, design changes, share/embed code and more. 2013-08-28 22:19:24 -05:00
Genre.php Lots of playlist things 2013-07-28 12:45:21 -05:00
Image.php Fixed permission issue 2013-09-27 15:49:22 -05:00
License.php Inital commit 2013-07-25 16:33:12 -05:00
News.php Fixed dashboard from crashing when RSS feed doesn't work 2014-01-04 23:09:03 -06:00
PinnedPlaylist.php Lots of playlist things 2013-07-28 12:45:21 -05:00
Playlist.php performance for when not logged in 2013-08-31 21:28:45 -05:00
ProfileRequest.php Further perf changes and more denormalization 2013-08-21 15:45:33 -05:00
ResourceLogItem.php Intermediate commit 2013-08-18 22:39:29 -05:00
ResourceUser.php Intermediate commit 2013-08-18 22:39:29 -05:00
ShowSong.php Started on show songs 2013-07-27 23:37:32 -05:00
Track.php T125: Replaced downloads and streams with TrackFiles. 2015-05-25 22:35:52 -07:00
TrackFile.php T125: Properly 404 on a nonexistent TrackFile. 2015-05-26 15:41:55 -07:00
TrackType.php Inital commit 2013-07-25 16:33:12 -05:00
User.php T126: Fixed standard profiles appearing as archived profiles. 2015-06-25 21:06:00 -07:00