mirror of
https://we.phorge.it/source/phorge.git
synced 2025-04-01 23:18:15 +02:00
Summary: Add some mailkeys, allow feed stories to be published. Test Plan: New Blog, Edit Blog Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D14434
21 lines
479 B
PHP
21 lines
479 B
PHP
<?php
|
|
|
|
final class PhameBlogReplyHandler
|
|
extends PhabricatorApplicationTransactionReplyHandler {
|
|
|
|
public function validateMailReceiver($mail_receiver) {
|
|
if (!($mail_receiver instanceof PhameBlog)) {
|
|
throw new Exception(
|
|
pht('Mail receiver is not a %s.', 'PhameBlog'));
|
|
}
|
|
}
|
|
|
|
public function getObjectPrefix() {
|
|
return PhabricatorPhameBlogPHIDType::TYPECONST;
|
|
}
|
|
|
|
protected function shouldCreateCommentFromMailBody() {
|
|
return false;
|
|
}
|
|
|
|
}
|