getByPK (primary key) lookup for Managed_DataObject instances

This commit is contained in:
Mikael Nordfeldth
2015-06-04 22:17:40 +02:00
parent ca19a5cd6d
commit ebdd792b6f
4 changed files with 51 additions and 13 deletions

View File

@@ -50,7 +50,7 @@ class ActivityverbAction extends ManagedAction
throw new ServerException('A verb has not been specified.');
}
$this->notice = Notice::getById($this->trimmed('id'));
$this->notice = Notice::getByID($this->trimmed('id'));
if (!$this->notice->inScope($this->scoped)) {
// TRANS: %1$s is a user nickname, %2$d is a notice ID (number).