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
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
127
Issues
127
List
Boards
Labels
Service Desk
Milestones
Merge Requests
27
Merge Requests
27
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
Commits
d85436cf
Commit
d85436cf
authored
4 hours ago
by
Mark Harding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(chore): serialized appeal sent
parent
9dc49442
master
epic/ReportingAndModeration
1 merge request
!100
Epic/reporting and moderation
Pipeline
#62745497
canceled with stages
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
4 deletions
+15
-4
ReportsAppealSummon.php
Core/Queue/Runners/ReportsAppealSummon.php
+1
-1
SummonDelegate.php
Core/Reports/Appeals/Delegates/SummonDelegate.php
+12
-1
Manager.php
Core/Reports/Summons/Manager.php
+2
-2
No files found.
Core/Queue/Runners/ReportsAppealSummon.php
View file @
d85436cf
...
...
@@ -33,7 +33,7 @@ class ReportsAppealSummon implements QueueRunner
$params
=
$data
->
getData
();
/** @var Appeal $appeal */
$appeal
=
$params
[
'appeal'
]
?
?
null
;
$appeal
=
$params
[
'appeal'
]
?
unserialize
(
$params
[
'appeal'
])
:
null
;
/** @var string[] $cohort */
$cohort
=
$params
[
'cohort'
]
??
null
;
...
...
This diff is collapsed.
Click to expand it.
Core/Reports/Appeals/Delegates/SummonDelegate.php
View file @
d85436cf
...
...
@@ -26,10 +26,21 @@ class SummonDelegate
public
function
onAppeal
(
Appeal
$appeal
)
{
switch
(
$appeal
->
getReport
()
->
getReasonCode
())
{
case
1
:
// Illegal
case
3
:
// Encourages or incites violence
case
5
:
// Personal and confidential information
case
15
:
// Trademark infringement
case
10
:
// Copyright
case
16
:
// Token manipulation
case
13
:
// Malware
return
;
// Can not have community jury
}
$this
->
queue
->
setQueue
(
'ReportsAppealSummon'
)
->
send
([
'appeal'
=>
$appeal
,
'appeal'
=>
serialize
(
$appeal
)
,
'cohort'
=>
null
,
// TODO: It can be an array of user guids. For development purposes only.
]);
}
...
...
This diff is collapsed.
Click to expand it.
Core/Reports/Summons/Manager.php
View file @
d85436cf
...
...
@@ -207,7 +207,7 @@ class Manager
$this
->
queueClient
->
setQueue
(
'ReportsAppealSummon'
)
->
send
([
'appeal'
=>
$appeal
,
],
70
);
'appeal'
=>
serialize
(
$appeal
)
,
],
10
);
// loop every 10 seconds
}
}
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