Skip to content

Commit

Permalink
remove archived
Browse files Browse the repository at this point in the history
  • Loading branch information
ScuffedNewt committed Mar 2, 2024
1 parent fcc7b45 commit a761ce1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Users/SubmissionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function getNewSubmission(Request $request) {
if (config('lorekeeper.settings.allow_gallery_submissions_on_prompts')) {
$collaboratorIds = GallerySubmissionCollaborator::where('user_id', Auth::user()->id)->where('has_approved', 1)->pluck('gallery_submission_id')->toArray();

$gallerySubmissions = GallerySubmission::where('user_id', Auth::user()->id)->orWhereIn('id', $collaboratorIds)->orderBy('id', 'DESC')->get()->pluck('title', 'id');
$gallerySubmissions = GallerySubmission::where('is_visible', true)->where('user_id', Auth::user()->id)->orWhereIn('id', $collaboratorIds)->orderBy('id', 'DESC')->get()->pluck('title', 'id');

$gallerySubmissions = $gallerySubmissions->map(function ($item, $key) {
return '"'.$item.'" by '.Auth::user()->name;
Expand Down

0 comments on commit a761ce1

Please sign in to comment.