Skip to content

Commit

Permalink
use 'Upcoming Challenge' for obscured title
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamiras committed Jan 20, 2025
1 parent 24b5e98 commit 9fe0156
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions app/Support/Shortcode/Shortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,9 @@ private function embedAchievement(int $id): string

if ($data['ConsoleID'] === System::Events) {
$achievement = Achievement::find($id);
if ($achievement->eventData?->source_achievement_id &&
$achievement->eventData?->active_from > Carbon::now()) {
$data['Title'] = $data['AchievementTitle'] = '?????';
if ($achievement->eventData?->source_achievement_id
&& $achievement->eventData->active_from > Carbon::now()) {
$data['Title'] = $data['AchievementTitle'] = 'Upcoming Challenge';
$data['Description'] = '?????';
$data['BadgeName'] = '00000';
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
} elseif ($achievement['SourceAchievementId']) {
// future event has been picked. don't show it until it's active
$achBadgeName = '00000';
$achievement['Title'] = '?????';
$achievement['Title'] = 'Upcoming Challenge';
$achievement['Description'] = '?????';
$achievement['SourceGameId'] = null;
}
Expand Down
2 changes: 1 addition & 1 deletion resources/views/pages-legacy/achievementInfo.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
// future event has been picked. don't show it until it's active
$eventAchievement = null;
$badgeName = $dataOut['BadgeName'] = '00000';
$achievementTitleRaw = $achievementTitle = $dataOut['Title'] = '?????';
$achievementTitleRaw = $achievementTitle = $dataOut['Title'] = 'Upcoming Challenge';
$achievementDescriptionRaw = $dataOut['Description'] = '?????';
$dataOut['SourceGameId'] = null;
} else {
Expand Down

0 comments on commit 9fe0156

Please sign in to comment.