summaryrefslogtreecommitdiff
path: root/classes/Notice.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-06-11 12:04:03 -0700
committerBrion Vibber <brion@pobox.com>2010-06-11 12:04:03 -0700
commit47665e845ae74e6ee5b9a39565fb45dd9a93f921 (patch)
treea24680e60e250f085c7290c8fa0ecbc3ec4c6ea8 /classes/Notice.php
parentec155464765db36591bbb183b335abbc1ec8638c (diff)
parent054ac909bf6222254cf9b2c3a4eda824f4f4eb8f (diff)
Merge branch 'testing' of gitorious.org:statusnet/mainline into testing
Diffstat (limited to 'classes/Notice.php')
-rw-r--r--classes/Notice.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/classes/Notice.php b/classes/Notice.php
index 0838ca2a2..9ac9e10c1 100644
--- a/classes/Notice.php
+++ b/classes/Notice.php
@@ -1863,4 +1863,16 @@ class Notice extends Memcached_DataObject
return $ns;
}
+ /**
+ * Determine whether the notice was locally created
+ *
+ * @return boolean locality
+ */
+
+ public function isLocal()
+ {
+ return ($this->is_local == Notice::LOCAL_PUBLIC ||
+ $this->is_local == Notice::LOCAL_NONPUBLIC);
+ }
+
}