1
0
mirror of https://koodu.h-i.works/projects/thebadspace synced 2025-06-25 16:04:37 -05:00

show multiple instance comments

the previous update cycle only showed the latest comment from Sources
concerning a specific instance

now all available comments are pulled from denylist data to be displayed
under Description on the front end
This commit is contained in:
ro
2024-09-17 15:41:31 -06:00
parent eed84a0419
commit ad1110e39d
3 changed files with 26 additions and 4 deletions

View File

@ -79,10 +79,12 @@ class FrontIndexController extends Controller
($member->role == 1 || $member->role == 2) ? $edit = true : $edit = false;
}
$links = explode(',', $location->archive_links);
$links = explode(',', $location->archive_links);
$comments = explode('+', $location->description);
return view('front.location', [
'title' => str_replace(".", " ", $name),
'location' => $location,
'comments' => $comments,
'actions' => $location->block_count + $location->silence_count,
'sources_count' => count($sources),
'images' => json_decode($location->images),