1
0
Fork 0
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:
Chad Little 2017-08-24 18:52:28 -07:00
parent fa5bcf5d94
commit 336fe5cdc5

View file

@ -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;
}