Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
275
Merge Requests
33
CI / CD
Security & Compliance
Packages
Analytics
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Compare Revisions
c28af3ce8387b13f1d840070e3ece6c0149ba151...395a39f201a01bf583397486204e3d872c80a59f
Source
395a39f201a01bf583397486204e3d872c80a59f
...
Target
c28af3ce8387b13f1d840070e3ece6c0149ba151
Compare
Commits (2)
Fixed mature overlay for NSFW groups
· 20b2a957
Ben Hayward
authored
1 hour ago
20b2a957
Merge branch 'feat/group-mature-filter-2402' into 'master'
· 395a39f2
Brian Hatchet
authored
1 hour ago
Fixed mature overlay for NSFW groups See merge request
!458
395a39f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Controllers/api/v1/groups/group.php
View file @
395a39f2
...
...
@@ -53,7 +53,7 @@ class group implements Interfaces\Api
if
(
!
$canRead
)
{
// Restrict output if cannot read
$allowed
=
[
'guid'
,
'name'
,
'membership'
,
'type'
,
'is:awaiting'
,
'is:invited'
];
$allowed
=
[
'guid'
,
'name'
,
'membership'
,
'type'
,
'is:awaiting'
,
'is:invited'
,
'nsfw'
,
'nsfw_lock'
];
if
(
$response
[
'group'
][
'membership'
]
==
2
)
{
$allowed
=
array_merge
(
$allowed
,
[
'members:count'
,
'activity:count'
,
'comments:count'
]);
}
...
...
This diff is collapsed.