]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
if is_local was not provided to Notice:saveActivity it wouldn't be set
authorMikael Nordfeldth <mmn@hethane.se>
Sat, 3 Oct 2015 11:24:31 +0000 (13:24 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Sat, 3 Oct 2015 11:24:31 +0000 (13:24 +0200)
classes/Notice.php

index 8f98abd306709a257ac8128e2ba340cb4dab2e48..fe42c074a0e8897c3328741c78993b02a2fc9201 100644 (file)
@@ -798,6 +798,8 @@ class Notice extends Managed_DataObject
         if (!$actor->hasRight(Right::PUBLICNOTICE) ||
             ($source && $autosource && in_array($source, $autosource))) {
             $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?