git » sdk » commit 368b47c

No stanza in pubilc API

author Stephen Paul Weber
2026-04-29 03:01:25 UTC
committer Stephen Paul Weber
2026-04-29 03:11:23 UTC
parent 06d6ec07aceaca223ec49db77956a565e8638002

No stanza in pubilc API

borogove/Status.hx +2 -1
test/TestStatus.hx +1 -0

diff --git a/borogove/Status.hx b/borogove/Status.hx
index d377a5a..15a956c 100644
--- a/borogove/Status.hx
+++ b/borogove/Status.hx
@@ -23,7 +23,8 @@ class Status {
 		return emoji + (emoji == "" || text == "" ? "" : " ") + text;
 	}
 
-	public function toStanza() {
+	@:allow(borogove)
+	private function toStanza() {
 		final s = new Stanza("activity", { xmlns: "http://jabber.org/protocol/activity" });
 		if (text != "") s.textTag("text", text);
 		if (emoji == "") {
diff --git a/test/TestStatus.hx b/test/TestStatus.hx
index 2bb157a..7b46c0b 100644
--- a/test/TestStatus.hx
+++ b/test/TestStatus.hx
@@ -4,6 +4,7 @@ import utest.Assert;
 import borogove.Status;
 import borogove.Stanza;
 
+@:access(borogove)
 class TestStatus extends utest.Test {
 	public function testToString() {
 		Assert.equals("", new Status("", "").toString());