Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
213
Issues
213
List
Boards
Labels
Service Desk
Milestones
Merge Requests
33
Merge Requests
33
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
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
Commits
6b39b7d8
Commit
6b39b7d8
authored
6 minutes ago
by
Marcelo Rivera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(feat): moved v2/feeds/channel to v2/pro/content
parent
53ccb4e5
epic/minds-pro
1 merge request
!308
WIP: (feat): Minds Pro
Pipeline
#82529328
failed with stages
in 4 minutes and 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
13 deletions
+6
-13
content.php
Controllers/api/v2/pro/content.php
+6
-13
No files found.
Controllers/api/v2/
feeds/channel
.php
→
Controllers/api/v2/
pro/content
.php
View file @
6b39b7d8
...
...
@@ -3,7 +3,7 @@
* @author: eiennohi.
*/
namespace
Minds\Controllers\api\v2\
feeds
;
namespace
Minds\Controllers\api\v2\
pro
;
use
Minds\Api\Exportable
;
use
Minds\Api\Factory
;
...
...
@@ -14,7 +14,7 @@ use Minds\Entities\Factory as EntitiesFactory;
use
Minds\Entities\User
;
use
Minds\Interfaces
;
class
c
hannel
implements
Interfaces\Api
class
c
ontent
implements
Interfaces\Api
{
const
MIN_COUNT
=
6
;
...
...
@@ -23,8 +23,6 @@ class channel implements Interfaces\Api
/** @var User $currentUser */
$currentUser
=
Core\Session
::
getLoggedinUser
();
//
$container_guid
=
$pages
[
0
]
??
null
;
$owner_guid
=
null
;
...
...
@@ -68,8 +66,6 @@ class channel implements Interfaces\Api
break
;
}
//
$hardLimit
=
5000
;
$offset
=
0
;
...
...
@@ -96,17 +92,15 @@ class channel implements Interfaces\Api
]);
}
//
$sync
=
(
bool
)
(
$_GET
[
'sync'
]
??
false
);
$fromTimestamp
=
$_GET
[
'from_timestamp'
]
??
0
;
$
asActivities
=
(
bool
)
(
$_GET
[
'as_activities'
]
??
true
);
$
exclude
=
explode
(
','
,
$_GET
[
'exclude'
]
??
''
);
$forcePublic
=
(
bool
)
(
$_GET
[
'force_public'
]
??
false
);
$
exclude
=
explode
(
','
,
$_GET
[
'exclude'
]
??
''
);
$
asActivities
=
(
bool
)
(
$_GET
[
'as_activities'
]
??
true
);
$query
=
null
;
...
...
@@ -114,8 +108,6 @@ class channel implements Interfaces\Api
$query
=
$_GET
[
'query'
];
}
$custom_type
=
isset
(
$_GET
[
'custom_type'
])
&&
$_GET
[
'custom_type'
]
?
[
$_GET
[
'custom_type'
]]
:
null
;
/** @var Core\Feeds\Top\Entities $entities */
$entities
=
new
Core\Feeds\Top\Entities
();
$entities
->
setActor
(
$currentUser
);
...
...
@@ -132,7 +124,7 @@ class channel implements Interfaces\Api
'container_guid'
=>
$container_guid
,
'owner_guid'
=>
$owner_guid
,
'access_id'
=>
$isOwner
&&
!
$forcePublic
?
[
0
,
1
,
2
,
$container_guid
]
:
[
2
,
$container_guid
],
'custom_type'
=>
$custom_type
,
'custom_type'
=>
null
,
'limit'
=>
$limit
,
'type'
=>
$type
,
'algorithm'
=>
'top'
,
...
...
@@ -228,4 +220,5 @@ class channel implements Interfaces\Api
{
return
Factory
::
response
([]);
}
}
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment