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
269
Issues
269
List
Boards
Labels
Service Desk
Milestones
Merge Requests
44
Merge Requests
44
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
530f8561
Commit
530f8561
authored
17 hours ago
by
Ben Hayward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated
parent
6372aefa
fix/banned-email-noreply-867
1 merge request
!345
WIP: [Sprint/OldfashionedOwl](fix): Updated from address in ban email to info@minds.com
Pipeline
#89881208
passed with stages
in 9 minutes and 31 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
Controllers/Cli/User.php
Controllers/Cli/User.php
+0
-1
Core/Email/Mailer.php
Core/Email/Mailer.php
+6
-5
Core/Email/Message.php
Core/Email/Message.php
+4
-4
No files found.
Controllers/Cli/User.php
View file @
530f8561
...
...
@@ -7,7 +7,6 @@ use Minds\Cli;
use
Minds\Interfaces
;
use
Minds\Exceptions
;
use
Minds\Entities
;
use
Minds\Core\Di\Di
;
use
Minds\Core\Channels\Ban
;
class
User
extends
Cli\Controller
implements
Interfaces\CliControllerInterface
...
...
This diff is collapsed.
Click to expand it.
Core/Email/Mailer.php
View file @
530f8561
...
...
@@ -48,20 +48,21 @@ class Mailer
*/
public
function
send
(
$message
)
{
$fromName
=
$message
->
from
[
'name'
]
??
'Minds'
;
$this
->
mailer
->
ClearAllRecipients
();
$this
->
mailer
->
ClearAttachments
();
if
(
isset
(
$message
->
getReplyTo
()[
'email'
]
))
{
if
(
$message
->
getReplyTo
(
))
{
$this
->
mailer
->
ClearReplyTos
();
$this
->
mailer
->
addReplyTo
(
$message
->
getReplyTo
()[
'email'
],
$message
->
getReplyTo
()[
'name'
]
$message
->
getReplyTo
()[
'name'
]
??
'Minds'
);
}
$this
->
mailer
->
setFrom
(
$message
->
from
[
'email'
],
$fromName
);
$this
->
mailer
->
setFrom
(
$message
->
from
[
'email'
],
$message
->
from
[
'name'
]
??
'Minds'
);
foreach
(
$message
->
to
as
$to
)
{
if
(
$this
->
filter
->
isSpam
(
$to
[
'email'
]))
{
...
...
This diff is collapsed.
Click to expand it.
Core/Email/Message.php
View file @
530f8561
...
...
@@ -117,11 +117,11 @@ class Message
/**
* Get reply-to.
*
* @return
Message returns
array containing email and username.
* @return
array
array containing email and username.
*/
public
function
getReplyTo
()
:
array
public
function
getReplyTo
()
{
return
$this
->
replyTo
;
return
$this
->
replyTo
??
[]
;
}
/**
* Set reply-to.
...
...
@@ -134,7 +134,7 @@ class Message
public
function
setReplyTo
(
$email
,
$name
=
'Minds'
)
:
Message
{
$this
->
replyTo
[
'email'
]
=
$email
;
$this
->
replyTo
[
'
user
name'
]
=
$name
;
$this
->
replyTo
[
'name'
]
=
$name
;
return
$this
;
}
}
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