Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Project
Details
Activity
Releases
Dependency List
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
152
Issues
152
List
Boards
Labels
Service Desk
Milestones
Merge Requests
47
Merge Requests
47
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Compare Revisions
323a271670341af465ec56dcdcd04f7c0d90ae85...bdd634c0608b4b14c3e90597a6bb7acefbbd61b2
Source
bdd634c0608b4b14c3e90597a6bb7acefbbd61b2
Select Git revision
...
Target
323a271670341af465ec56dcdcd04f7c0d90ae85
Select Git revision
Compare
Commits (3)
(fix): ensure arrays are sent to tags and not objects
· be1bb7c5
Mark Harding
authored
2 hours ago
be1bb7c5
(fix): decode search query
· 36a7971f
Mark Harding
authored
1 hour ago
36a7971f
Adding in max video filesize config for front/1506
· bdd634c0
Ben Hayward
authored
51 minutes ago
bdd634c0
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
4 deletions
+10
-4
config.php
Controllers/api/v1/minds/config.php
+1
-0
feeds.php
Controllers/api/v2/feeds.php
+1
-1
EntityMapping.php
Core/Search/Mappings/EntityMapping.php
+1
-1
GroupMapping.php
Core/Search/Mappings/GroupMapping.php
+1
-1
UserMapping.php
Core/Search/Mappings/UserMapping.php
+1
-1
settings.example.php
settings.example.php
+5
-0
No files found.
Controllers/api/v1/minds/config.php
View file @
bdd634c0
...
...
@@ -34,6 +34,7 @@ class config implements Interfaces\Api, Interfaces\ApiIgnorePam
"max_video_length"
=>
(
Core\Session
::
getLoggedInUser
()
&&
Core\Session
::
getLoggedInUser
()
->
isPlus
())
?
Minds\Core\Config
::
_
()
->
get
(
'max_video_length_plus'
)
:
Minds\Core\Config
::
_
()
->
get
(
'max_video_length'
),
"max_video_file_size"
=>
Minds\Core\Config
::
_
()
->
get
(
'max_video_file_size'
)
?:
[],
"features"
=>
(
object
)
(
Minds\Core\Config
::
_
()
->
get
(
'features'
)
?:
[]),
"blockchain"
=>
(
object
)
Minds\Core\Di\Di
::
_
()
->
get
(
'Blockchain\Manager'
)
->
getPublicSettings
(),
"plus"
=>
Minds\Core\Config
::
_
()
->
get
(
'plus'
),
...
...
This diff is collapsed.
Click to expand it.
Controllers/api/v2/feeds.php
View file @
bdd634c0
...
...
@@ -121,7 +121,7 @@ class feeds implements Interfaces\Api
$asActivities
=
(
bool
)
(
$_GET
[
'as_activities'
]
??
true
);
$query
=
$_GET
[
'query'
]
??
null
;
$query
=
isset
(
$_GET
[
'query'
])
?
urldecode
(
$_GET
[
'query'
])
:
null
;
$container_guid
=
$_GET
[
'container_guid'
]
??
null
;
$custom_type
=
isset
(
$_GET
[
'custom_type'
])
&&
$_GET
[
'custom_type'
]
?
[
$_GET
[
'custom_type'
]]
:
null
;
...
...
This diff is collapsed.
Click to expand it.
Core/Search/Mappings/EntityMapping.php
View file @
bdd634c0
...
...
@@ -186,7 +186,7 @@ class EntityMapping implements MappingInterface
$map
[
'tags'
]
=
[];
}
$map
[
'tags'
]
=
array_
unique
(
array_merge
(
$map
[
'tags'
],
array_map
(
'strtolower'
,
$tags
)));
$map
[
'tags'
]
=
array_
values
(
array_unique
(
array_merge
(
$map
[
'tags'
],
array_map
(
'strtolower'
,
$tags
)
)));
$map
[
'nsfw'
]
=
array_unique
(
$this
->
entity
->
getNsfw
());
...
...
This diff is collapsed.
Click to expand it.
Core/Search/Mappings/GroupMapping.php
View file @
bdd634c0
...
...
@@ -33,7 +33,7 @@ class GroupMapping extends EntityMapping implements MappingInterface
$map
[
'membership'
]
=
(
int
)
$this
->
entity
->
getMembership
();
$map
[
'public'
]
=
$map
[
'membership'
]
==
ACCESS_PUBLIC
;
$map
[
'tags'
]
=
array_
unique
(
array_merge
(
$map
[
'tags'
],
$this
->
entity
->
getTags
(
)));
$map
[
'tags'
]
=
array_
values
(
array_unique
(
array_merge
(
$map
[
'tags'
],
$this
->
entity
->
getTags
()
)));
$map
[
'rating'
]
=
$this
->
entity
->
getRating
();
return
$map
;
...
...
This diff is collapsed.
Click to expand it.
Core/Search/Mappings/UserMapping.php
View file @
bdd634c0
...
...
@@ -53,7 +53,7 @@ class UserMapping extends EntityMapping implements MappingInterface
$map
[
'group_membership'
]
=
[];
}
$map
[
'tags'
]
=
array_
unique
(
$this
->
entity
->
getTags
(
));
$map
[
'tags'
]
=
array_
values
(
array_unique
(
$this
->
entity
->
getTags
()
));
return
$map
;
}
...
...
This diff is collapsed.
Click to expand it.
settings.example.php
View file @
bdd634c0
...
...
@@ -481,10 +481,15 @@ $CONFIG->set('email', [
]
]);
/* Maximum video length for non-plus users */
$CONFIG
->
set
(
'max_video_length'
,
900
);
/* Maximum video length for plus */
$CONFIG
->
set
(
'max_video_length_plus'
,
1860
);
/* Maximum video file size, in bytes */
$CONFIG
->
set
(
'max_video_file_size'
,
3900000000
);
$CONFIG
->
set
(
'aws'
,
[
'key'
=>
''
,
'secret'
=>
''
,
...
...
This diff is collapsed.
Click to expand it.