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
209
Issues
209
List
Boards
Labels
Service Desk
Milestones
Merge Requests
29
Merge Requests
29
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
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
218a2fe9
Commit
218a2fe9
authored
4 hours ago
by
Marcelo Rivera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(feat): support filtering by hashtags
parent
e45b6a7c
epic/minds-pro
1 merge request
!292
WIP: (feat): Minds Pro (development branch) - Release 2
Pipeline
#75398774
passed with stages
in 10 minutes and 36 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
channel.php
Controllers/api/v2/feeds/channel.php
+14
-0
No files found.
Controllers/api/v2/feeds/channel.php
View file @
218a2fe9
...
...
@@ -141,6 +141,20 @@ class channel implements Interfaces\Api
$opts
[
'nsfw'
]
=
explode
(
','
,
$nsfw
);
}
$hashtag
=
null
;
if
(
isset
(
$_GET
[
'hashtag'
]))
{
$hashtag
=
strtolower
(
$_GET
[
'hashtag'
]);
}
if
(
$hashtag
)
{
$opts
[
'hashtags'
]
=
[
$hashtag
];
$opts
[
'filter_hashtags'
]
=
true
;
}
elseif
(
isset
(
$_GET
[
'hashtags'
])
&&
$_GET
[
'hashtags'
])
{
$opts
[
'hashtags'
]
=
explode
(
','
,
$_GET
[
'hashtags'
]);
$opts
[
'filter_hashtags'
]
=
true
;
}
try
{
$result
=
$this
->
getData
(
$entities
,
$opts
,
$asActivities
,
$sync
);
...
...
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