Add invisible metadata specification v2 PROPOSED

Andrew Thorp: 1
 Add invisible metadata specification

 3 files changed, 16 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~whereswaldon/arbor-dev/patches/22614/mbox | git am -3
Learn more about email & git

[PATCH v2] Add invisible metadata specification Export this patch

Good evening fellas,

I've addressed ~whereswaldon's feedback and added an additional entry to the
specification index so the invisible specification isn't itself invisible 
from the wiki :D

Please let me know if there is anything else I should add/change.


Andrew Thorp

 specifications/twig-extensions/index.md            | 2 ++
 specifications/twig-extensions/invisible/index.md  | 9 +++++++++
 specifications/twig-extensions/invisible/spec.toml | 5 +++++
 3 files changed, 16 insertions(+)
 create mode 100644 specifications/twig-extensions/invisible/index.md
 create mode 100644 specifications/twig-extensions/invisible/spec.toml

diff --git a/specifications/twig-extensions/index.md b/specifications/twig-extensions/index.md
index 9878fe5..d2f28e2 100644
--- a/specifications/twig-extensions/index.md
+++ b/specifications/twig-extensions/index.md
@@ -8,3 +8,5 @@ Each directory represents a single extension and should include an `index.md` de
    - [toml](https://git.sr.ht/~whereswaldon/arborchat/tree/main/specifications/twig-extensions/active-status/spec.toml)
- [expiration](./specifications/twig-extensions/expiration/)
    - [toml](https://git.sr.ht/~whereswaldon/arborchat/tree/main/specifications/twig-extensions/expiration/spec.toml)
- [invisible](./specifications/twig-extensions/invisible/)
    - [toml](https://git.sr.ht/~whereswaldon/arborchat/tree/main/specifications/twig-extensions/invisible/spec.toml)
diff --git a/specifications/twig-extensions/invisible/index.md b/specifications/twig-extensions/invisible/index.md
new file mode 100644
index 0000000..0695bca
--- /dev/null
+++ b/specifications/twig-extensions/invisible/index.md
@@ -0,0 +1,9 @@
# Active Status
Twig metadata which indicates whether or not a message is intended to be rendered.
Field specification in [spec.toml](https://git.sr.ht/~whereswaldon/arborchat/tree/main/specifications/twig-extensions/active-status/spec.toml).

## Usage
If a message is intended to be strictly metadata or is otherwise not supposed to
be rendered as a chat message, add the invisibility twig metadata to mark a
message as invisible. It is up to the client to implement how it handles an
"invisible" message, or if it even enforces it.
diff --git a/specifications/twig-extensions/invisible/spec.toml b/specifications/twig-extensions/invisible/spec.toml
new file mode 100644
index 0000000..3a96964
--- /dev/null
+++ b/specifications/twig-extensions/invisible/spec.toml
@@ -0,0 +1,5 @@
key-name = "invisible"

type = "Byte Array"
description = "No additional metadata is provided; this byte array is empty."
Thanks Andrew, merged with a minor tweak!