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
227
Issues
227
List
Boards
Labels
Service Desk
Milestones
Merge Requests
34
Merge Requests
34
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
245e12cc
Commit
245e12cc
authored
3 minutes ago
by
Ben Hayward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed old handler
parent
deaf18e5
fix/blog-paywall-1916
1 merge request
!359
WIP: [Sprint/PinkPanther](fix): Stripping out blog body upon export.
Pipeline
#88029314
running with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
27 deletions
+0
-27
Core/Wire/Paywall/Events.php
Core/Wire/Paywall/Events.php
+0
-27
No files found.
Core/Wire/Paywall/Events.php
View file @
245e12cc
...
...
@@ -64,33 +64,6 @@ class Events
}
});
/**
* Blogs need more exportable fields for paywall
*/
Dispatcher
::
register
(
'export:extender'
,
'blog'
,
function
(
Event
$event
)
{
$params
=
$event
->
getParameters
();
/** @var Core\Blogs\Blog $blog */
$blog
=
$params
[
'entity'
];
$export
=
$event
->
response
()
?:
[];
$currentUser
=
Session
::
getLoggedInUserGuid
();
$dirty
=
false
;
if
(
$blog
->
isPaywall
()
&&
$blog
->
owner_guid
!=
$currentUser
)
{
$export
[
'description'
]
=
''
;
$export
[
'body'
]
=
''
;
$dirty
=
true
;
}
if
(
$dirty
)
{
return
$event
->
setResponse
(
$export
);
}
if
(
!
$currentUser
)
{
return
;
}
});
/**
* Wire paywall hooks. Allows access if sent wire or is plus
*/
...
...
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