if is_local was not provided to Notice:saveActivity it wouldn't be set

This commit is contained in:
Mikael Nordfeldth 2015-10-03 13:24:31 +02:00
parent aba38d5586
commit 66a1d63dd0

View File

@ -798,6 +798,8 @@ class Notice extends Managed_DataObject
if (!$actor->hasRight(Right::PUBLICNOTICE) || if (!$actor->hasRight(Right::PUBLICNOTICE) ||
($source && $autosource && in_array($source, $autosource))) { ($source && $autosource && in_array($source, $autosource))) {
$stored->is_local = Notice::LOCAL_NONPUBLIC; $stored->is_local = Notice::LOCAL_NONPUBLIC;
} else {
$notice->is_local = $is_local;
} }
// Maybe a missing act-time should be fatal if the actor is not local? // Maybe a missing act-time should be fatal if the actor is not local?