]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Use constant for ATTN_PUBLIC (public collection)
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 18 Apr 2016 13:56:52 +0000 (15:56 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 18 Apr 2016 13:56:52 +0000 (15:56 +0200)
classes/Notice.php

index 6501a83adb85d675b79e1f303ab1da00152234c0..f38de371678be3b21967a308907244e975d1567f 100644 (file)
@@ -955,10 +955,10 @@ class Notice extends Managed_DataObject
             $act->context = new ActivityContext();
         }
 
-        if (array_key_exists('http://activityschema.org/collection/public', $act->context->attention)) {
+        if (array_key_exists(ActivityContext::ATTN_PUBLIC, $act->context->attention)) {
             $stored->scope = Notice::PUBLIC_SCOPE;
             // TODO: maybe we should actually keep this? if the saveAttentions thing wants to use it...
-            unset($act->context->attention['http://activityschema.org/collection/public']);
+            unset($act->context->attention[ActivityContext::ATTN_PUBLIC]);
         } else {
             $stored->scope = self::figureOutScope($actor, $groups, $scope);
         }