Skip to content

Commit

Permalink
Apparently thread_id defaults to 0 not null...?
Browse files Browse the repository at this point in the history
  • Loading branch information
nekodex committed Dec 15, 2017
1 parent afeabbb commit 448f31b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Transformers/BeatmapsetTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function transform(Beatmapset $beatmapset = null)
'has_scores' => $beatmapset->hasScores(),
'discussion_enabled' => $beatmapset->discussion_enabled,
'is_watched' => BeatmapsetWatch::check($beatmapset, Auth::user()),
'legacy_thread_url' => $beatmapset->thread_id ? osu_url('legacy-forum-thread-prefix').$beatmapset->thread_id : null,
'legacy_thread_url' => $beatmapset->thread_id !== 0 ? osu_url('legacy-forum-thread-prefix').$beatmapset->thread_id : null,
];
}

Expand Down

0 comments on commit 448f31b

Please sign in to comment.