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
276
Merge Requests
35
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
Commits
18b11072
Commit
18b11072
authored
1 hour ago
by
Ben Hayward
Browse files
Options
Download
Refactored and added entity type check
parent
b11c2e3e
fix/signed-wire-threshold-export-2004
1 merge request
!461
WIP: Fix/signed wire threshold export 2004
Pipeline
#117959347
running with stages
in 62 minutes and 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
Controllers/api/v1/wire/threshold.php
View file @
18b11072
...
...
@@ -43,16 +43,15 @@ class threshold implements Interfaces\Api
if
(
$isAllowed
)
{
$entity
->
setPaywall
(
false
);
// Sign URI so that user can view it.
$signedUri
=
new
SignedUri
();
$signed
=
$entity
->
custom_data
[
0
][
'src'
]
?
$signedUri
->
sign
(
$entity
->
custom_data
[
0
][
'src'
])
:
null
;
if
(
$entity
->
type
==
'activity'
)
{
$response
[
'activity'
]
=
$entity
->
export
();
$response
[
'activity'
][
'paywall_unlocked'
]
=
true
;
$response
[
'activity'
][
'custom_data'
][
0
][
'src'
]
=
$signed
;
if
(
isset
(
$entity
->
custom_type
)
&&
$entity
->
custom_type
===
'batch'
)
{
$signedUri
=
new
SignedUri
();
// Sign URI so that user can view it.
$signed
=
$signedUri
->
sign
(
$entity
->
custom_data
[
0
][
'src'
]);
$response
[
'activity'
][
'custom_data'
][
0
][
'src'
]
=
$signed
;
}
}
else
{
$response
[
'entity'
]
=
$entity
->
export
();
$response
[
'entity'
][
'paywall_unlocked'
]
=
true
;
...
...
This diff is collapsed.
Please
register
or
sign in
to comment