mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 05:50:55 +01:00
Dont send an email when someone views a Phame post
Summary: lulz. :( Test Plan: Load PhamePost, get email. Fix. Reload PhamePost, no email. Reviewers: epriestley, avivey Reviewed By: avivey Spies: Korvin Differential Revision: https://secure.phabricator.com/D18471
This commit is contained in:
parent
fa5bcf5d94
commit
336fe5cdc5
1 changed files with 6 additions and 0 deletions
|
@ -32,6 +32,12 @@ final class PhamePostEditor
|
|||
if ($object->isDraft() || ($object->isArchived())) {
|
||||
return false;
|
||||
}
|
||||
foreach ($xactions as $xaction) {
|
||||
switch ($xaction->getTransactionType()) {
|
||||
case PhamePostViewsTransaction::TRANSACTIONTYPE:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue