diff --git a/v3/feed.rss b/v3/feed.rss index 056a401..3001781 100644 --- a/v3/feed.rss +++ b/v3/feed.rss @@ -2,10 +2,195 @@ GNU social V3https://gnusocial.rocks/v3/index.html Development blog where we announce our progress.en -Wed, 03 Nov 2021 01:48:53 +0000 -Wed, 03 Nov 2021 01:48:53 +0000 +Sun, 05 Dec 2021 22:39:56 +0000 +Sun, 05 Dec 2021 22:39:56 +0000 +Milestone: ActivityPub +ActivityPub Plugin source.

+ +

This milestone could be just this, what's different from any other ActivityPub +plugin? How is it better than v2's?

+ +

It's better in how it's organised and extensible. See the examples below to have +an idea.

+ +

To extend an Activity properties you do:

+ +
public function onActivityPubValidateActivityStreamsTwoData(string $type_name, array &$validators): bool {
+    if ($type_name === '{Type}') {
+        $validators['attribute'] = myValidator::class;
+    }
+    return Event::next;
+}
+
+ +

The Validator should be of the form:

+ +
class myValidator extends Plugin\ActivityPub\Util\ModelValidator
+{
+    /**
+     * Validate Attribute's value
+     *
+     * @param mixed $value from JSON's attribute
+     * @param mixed $container A {Type}
+     * @return bool
+     * @throws Exception
+     */
+    public function validate($value, $container): bool
+    {
+        // Validate that container is a {Type}
+        Util::subclassOf($container, Type\Extended\Object\{Type}::class, true);
+
+        return {Validation Result};
+
+ +

To act on received activities do:

+ +
public function onActivityPubNew{Type}(&$obj): bool {
+
+ +

To add information to Activities being federated by ActivityPub do:

+ +
public function ActivityPubAddActivityStreamsTwoData(string $type_name, &$type): bool {
+
+ +

To implement an ActivityStreams 2.0 representation do:

+ +
public function onActivityPubActivityStreamsTwoResponse(string $route, arrray $vars, ?TypeResponse &$response = null): bool {
+        if ($route === '{Object route}') {
+                $response = ModelResponse::handle($vars[{Object}]);
+                return Event::stop;
+        }
+        return Event::next;
+}
+
+ + + +]]>
https://gnusocial.rocks/v3/milestone-activitypub.html +https://gnusocial.rocks/v3/./milestone-activitypub.html +GNU social development team +Sun, 05 Dec 2021 22:29:51 +0000
+ +Milestone: Tags + +

Due to the high density of technical aspects, we decided to keep this blog +post more on the light side and focus on explaining the new functionalities. +Check our Wiki Milestone entry for all the juicy details.

+ + +

>WIKI Milestone entry

+ +

GNU social v2 has tags and lists. It allows you to: +- search for an #hashtag and see a stream of notes tagged with it; +- make lists of actors and mention them with @#list_name +- self tag and enter a list of people in your instance with the same self tag

+ +

It is limited with regards to federation of self tags and the @#list_name can't +target remote actors even when they are inside your list.

+ +

What's new with v3?

+ +

Federated self tags

+ +

We now federate self tags and lists, so that constraint from v2 was moved out of +the way.

+ +

In the future, the use of these tags can allow you to find people, +groups and even individual notes that have a tag you're interested in. We only +mean filtering, not magic recommendation algorithms.

+ +

Tag Wrangling

+ +

Proposed by @licho in Tue, 02 Jun 2019 17:52:07 GMT:

+ +
+

I like the tag wrangling feature of AO3, which I think would help for cases of synonymous tags like #introduction and #introductions

+ +

https://archiveofourown.org/wrangling_guidelines/11

+ +

Is it feasible for !gnusocial ? Or would it cause problems?

+
+ +

The answer is yes and will be released with v3. With the addition of +Languages in notes and actors) there was little excuse not to be feasible.

+ +

Whenever you post a note containing tags, you can choose whether to +make those tags canonical. This means that, for instance, the tags +#run and #running become the 'same', meaning that when you click on +the link for the #run tag, you'll also see notes tagged #running. You +can opt out of the behaviour by unchecking the "Make note tags +canonical". An identical process occurs for people tags.

+ +

Internally, this transformation is accomplished by splitting the tag +into words and stemming each word.

+ +

Related Tags

+ +

In a tag feed, you can see tags that are often used together with the +one you're seeing. This can be useful, for instance, for finding other +content you'd be interested in.

+ +

Improved Tag feeds

+ +

When you click on a tag, be it a note tag or a person tag, you'll see +a feed of notes/people with that tag. You can also edit the feeds you +see in your left panel, so you can follow a given tag.

+ +

Mute Self Tags and Note Tags

+ +

If you don't like seeing a given tag in your feeds, for whatever +reason, you can choose to mute it. You can mute a note tag or a person +tag, in which case you wouldn't see any notes from people with that +tag.

+ + + +]]>
https://gnusocial.rocks/v3/milestone-tags.html +https://gnusocial.rocks/v3/./milestone-tags.html +GNU social development team +Sun, 05 Dec 2021 22:21:44 +0000
+ +Milestone: Notes and Actors with languages +Well, it's that, our notes now have a language attribute.

+ +

... All right, all right, it's not just it.

+ +

Here's what comes with it:

+ + + +

Here's how it looks:

+ +

What does this mean?

+ +

We can now show you the notes you can read, but for groups, this mean that you +can access umbrella groups and filter the feeds to see what's in your language +and even region.

+ +

For too long the fediverse struggled with languages, this step makes it easier +for actual internationalization of the free network.

+ + + + + +]]>
https://gnusocial.rocks/v3/milestone-notes-and-actors-with-languages.html +https://gnusocial.rocks/v3/./milestone-notes-and-actors-with-languages.html +GNU social development team +Sun, 05 Dec 2021 22:19:35 +0000
+ Milestone: ActivityStreams 2.0 and WebFinger We still have to port OStatus (and ActivityStreams 1.0) and implement the distribution by FreeNetwork, although the base work is done. Regarding ActivityPub, although some of it already works, expanding the existing plugins to supplement ActivityPub, and full validation isn't ready yet. We will most likely finish the implementation of the whole federation stack in the next week.

+ + + ]]>
https://gnusocial.rocks/v3/milestone-activitystreams-20-and-webfinger.html https://gnusocial.rocks/v3/./milestone-activitystreams-20-and-webfinger.html @@ -139,6 +327,9 @@ forget to subscribe!

+ + + ]]>https://gnusocial.rocks/v3/updates-v3-blog.html https://gnusocial.rocks/v3/./updates-v3-blog.html @@ -169,6 +360,9 @@ attempts to generate a page preview from open graph and oembed. I.e., acts when + + + ]]>https://gnusocial.rocks/v3/updates-implement-storeremotemedia-for-v3-and-port-embed.html https://gnusocial.rocks/v3/./updates-implement-storeremotemedia-for-v3-and-port-embed.html @@ -232,6 +426,9 @@ any remote URL being shared in a note. + + + ]]>https://gnusocial.rocks/v3/updates-improve-the-attachments-system.html https://gnusocial.rocks/v3/./updates-improve-the-attachments-system.html @@ -322,6 +519,9 @@ Updates: Finish the Avatar component + + + @@ -384,71 +584,12 @@ is properly tested, we have the + + + ]]>https://gnusocial.rocks/v3/milestone-documentation-and-tests-infrastructure.html https://gnusocial.rocks/v3/./milestone-documentation-and-tests-infrastructure.html GNU social development team Wed, 04 Aug 2021 13:37:42 +0100
- -Milestone: Port Media handling from v2 ->WIKI Milestone entry

- -

File Storage in GNU social is used for avatars, for notes containing -attachments, and for notes containing links (in which case is an Embed preview). -Notes can be created by local users or fetched from remote actors. Filehash is -used to reduce file duplication.

- -

When a user shares a Link that uses OpenGraph tags or has an OEmbed provider, -the Embed plugin generates a preview for it that may contain a thumbnail.

- -

When a user shares a Link to an image, the StoreRemoteMedia plugin can fetch the -file and make it available as an attachment, and will generate a thumbnail.

- -

When an image, video, or other file type is uploaded or retrieved, an Attachment -entity is created. When a thumbnail is requested, one is generated if an -EncoderPlugin that supports the mime type is available.

- -

There are two EncoderPlugins implemented:

- -
    -
  • ImageEncoder: Allows to compress, validate, rescale, and sanitize images using VIPS.
  • -
  • VideoEncoder: Allows to rescale gifs using FFMpeg.
  • -
- -

Another helpful plugin is FileQuota which ensures a user stays under the file quota.

- -

How is the code organised?

- -

There are various entities related to attachment and thumbnail handling. -The key ones are:

- - - -

The plugins are able to act by means of the Events system, as elaborated in the -documentation.

- - - - - - - - - - - - - - - - -]]>
https://gnusocial.rocks/v3/milestone-port-media-handling-from-v2.html -https://gnusocial.rocks/v3/./milestone-port-media-handling-from-v2.html -GNU social development team -Mon, 03 May 2021 13:37:42 +0100
diff --git a/v3/index.html b/v3/index.html index fa6391b..ef85c07 100644 --- a/v3/index.html +++ b/v3/index.html @@ -43,6 +43,12 @@ Our objective is to further differentiate GNU social from the alternative softwa

Blog

+

December 2021

+

November 2021

+
+ +

+Milestone: ActivityPub +

+ +
December 05, 2021 — +GNU social development team +
+ + +

ActivityPub Plugin source.

+ +

This milestone could be just this, what's different from any other ActivityPub +plugin? How is it better than v2's?

+ +

It's better in how it's organised and extensible. See the examples below to have +an idea.

+ +

To extend an Activity properties you do:

+ +
public function onActivityPubValidateActivityStreamsTwoData(string $type_name, array &$validators): bool {
+    if ($type_name === '{Type}') {
+        $validators['attribute'] = myValidator::class;
+    }
+    return Event::next;
+}
+
+ +

The Validator should be of the form:

+ +
class myValidator extends Plugin\ActivityPub\Util\ModelValidator
+{
+    /**
+     * Validate Attribute's value
+     *
+     * @param mixed $value from JSON's attribute
+     * @param mixed $container A {Type}
+     * @return bool
+     * @throws Exception
+     */
+    public function validate($value, $container): bool
+    {
+        // Validate that container is a {Type}
+        Util::subclassOf($container, Type\Extended\Object\{Type}::class, true);
+
+        return {Validation Result};
+
+ +

To act on received activities do:

+ +
public function onActivityPubNew{Type}(&$obj): bool {
+
+ +

To add information to Activities being federated by ActivityPub do:

+ +
public function ActivityPubAddActivityStreamsTwoData(string $type_name, &$type): bool {
+
+ +

To implement an ActivityStreams 2.0 representation do:

+ +
public function onActivityPubActivityStreamsTwoResponse(string $route, arrray $vars, ?TypeResponse &$response = null): bool {
+        if ($route === '{Object route}') {
+                $response = ModelResponse::handle($vars[{Object}]);
+                return Event::stop;
+        }
+        return Event::next;
+}
+
+ + + + +
+
+ diff --git a/v3/milestone-activitypub.md b/v3/milestone-activitypub.md new file mode 100644 index 0000000..8a2f6d1 --- /dev/null +++ b/v3/milestone-activitypub.md @@ -0,0 +1,56 @@ +Milestone: ActivityPub + +[ActivityPub Plugin source](https://code.undefinedhackers.net/GNUsocial/gnu-social/src/branch/v3/plugins/ActivityPub). + +This milestone could be just this, what's different from any other ActivityPub +plugin? How is it better than v2's? + +It's better in how it's organised and extensible. See the examples below to have +an idea. + +To extend an Activity properties you do: + + public function onActivityPubValidateActivityStreamsTwoData(string $type_name, array &$validators): bool { + if ($type_name === '{Type}') { + $validators['attribute'] = myValidator::class; + } + return Event::next; + } + +The Validator should be of the form: + + class myValidator extends Plugin\ActivityPub\Util\ModelValidator + { + /** + * Validate Attribute's value + * + * @param mixed $value from JSON's attribute + * @param mixed $container A {Type} + * @return bool + * @throws Exception + */ + public function validate($value, $container): bool + { + // Validate that container is a {Type} + Util::subclassOf($container, Type\Extended\Object\{Type}::class, true); + + return {Validation Result}; + +To act on received activities do: + + public function onActivityPubNew{Type}(&$obj): bool { + +To add information to Activities being federated by ActivityPub do: + + public function ActivityPubAddActivityStreamsTwoData(string $type_name, &$type): bool { + +To implement an ActivityStreams 2.0 representation do: + + public function onActivityPubActivityStreamsTwoResponse(string $route, arrray $vars, ?TypeResponse &$response = null): bool { + if ($route === '{Object route}') { + $response = ModelResponse::handle($vars[{Object}]); + return Event::stop; + } + return Event::next; + } + diff --git a/v3/milestone-activitystreams-20-and-webfinger.html b/v3/milestone-activitystreams-20-and-webfinger.html index 26eaa4e..145adb7 100644 --- a/v3/milestone-activitystreams-20-and-webfinger.html +++ b/v3/milestone-activitystreams-20-and-webfinger.html @@ -65,6 +65,9 @@ GNU social development team

We still have to port OStatus (and ActivityStreams 1.0) and implement the distribution by FreeNetwork, although the base work is done. Regarding ActivityPub, although some of it already works, expanding the existing plugins to supplement ActivityPub, and full validation isn't ready yet. We will most likely finish the implementation of the whole federation stack in the next week.

+ + + diff --git a/v3/milestone-documentation-and-tests-infrastructure.html b/v3/milestone-documentation-and-tests-infrastructure.html index 165f2ec..60b9345 100644 --- a/v3/milestone-documentation-and-tests-infrastructure.html +++ b/v3/milestone-documentation-and-tests-infrastructure.html @@ -91,6 +91,9 @@ is properly tested, we have the + + + diff --git a/v3/milestone-notes-and-actors-with-languages.html b/v3/milestone-notes-and-actors-with-languages.html new file mode 100644 index 0000000..d619142 --- /dev/null +++ b/v3/milestone-notes-and-actors-with-languages.html @@ -0,0 +1,78 @@ + + + + + + + + + +Milestone: Notes and Actors with languages - GNU social V3 + +
+ + +
+ +
+
+
+
+ +

+Milestone: Notes and Actors with languages +

+ +
December 05, 2021 — +GNU social development team +
+ + +

Well, it's that, our notes now have a language attribute.

+ +

... All right, all right, it's not just it.

+ +

Here's what comes with it:

+ + + +

Here's how it looks:

+ +

What does this mean?

+ +

We can now show you the notes you can read, but for groups, this mean that you +can access umbrella groups and filter the feeds to see what's in your language +and even region.

+ +

For too long the fediverse struggled with languages, this step makes it easier +for actual internationalization of the free network.

+ + + + + + +
+
+ diff --git a/v3/milestone-notes-and-actors-with-languages.md b/v3/milestone-notes-and-actors-with-languages.md new file mode 100644 index 0000000..5296667 --- /dev/null +++ b/v3/milestone-notes-and-actors-with-languages.md @@ -0,0 +1,22 @@ +Milestone: Notes and Actors with languages + +Well, it's that, our notes now have a language attribute. + +... All right, all right, it's not _just_ it. + +## Here's what comes with it: + +* [Filter the streams with only the languages you know]() +* [Federate the language for a more inclusive free network]() +* [Make Tag Wrangling possible an transversal to languages]() + +## Here's how it looks: + +## What does this mean? + +We can now show you the notes you can read, but for groups, this mean that you +can access umbrella groups and filter the feeds to see what's in your language +and even region. + +For too long the fediverse struggled with languages, this step makes it easier +for actual internationalization of the free network. diff --git a/v3/milestone-port-media-handling-from-v2.html b/v3/milestone-port-media-handling-from-v2.html index ba99cc6..086962a 100644 --- a/v3/milestone-port-media-handling-from-v2.html +++ b/v3/milestone-port-media-handling-from-v2.html @@ -95,6 +95,9 @@ The key ones are:

+ + + diff --git a/v3/milestone-tags.html b/v3/milestone-tags.html new file mode 100644 index 0000000..a06f943 --- /dev/null +++ b/v3/milestone-tags.html @@ -0,0 +1,124 @@ + + + + + + + + + +Milestone: Tags - GNU social V3 + +
+ + +
+ +
+
+
+
+ +

+Milestone: Tags +

+ +
December 05, 2021 — +GNU social development team +
+ + +
+

Due to the high density of technical aspects, we decided to keep this blog +post more on the light side and focus on explaining the new functionalities. +Check our Wiki Milestone entry for all the juicy details.

+
+ +

>WIKI Milestone entry

+ +

GNU social v2 has tags and lists. It allows you to: +- search for an #hashtag and see a stream of notes tagged with it; +- make lists of actors and mention them with @#list_name +- self tag and enter a list of people in your instance with the same self tag

+ +

It is limited with regards to federation of self tags and the @#list_name can't +target remote actors even when they are inside your list.

+ +

What's new with v3?

+ +

Federated self tags

+ +

We now federate self tags and lists, so that constraint from v2 was moved out of +the way.

+ +

In the future, the use of these tags can allow you to find people, +groups and even individual notes that have a tag you're interested in. We only +mean filtering, not magic recommendation algorithms.

+ +

Tag Wrangling

+ +

Proposed by @licho in Tue, 02 Jun 2019 17:52:07 GMT:

+ +
+

I like the tag wrangling feature of AO3, which I think would help for cases of synonymous tags like #introduction and #introductions

+ +

https://archiveofourown.org/wrangling_guidelines/11

+ +

Is it feasible for !gnusocial ? Or would it cause problems?

+
+ +

The answer is yes and will be released with v3. With the addition of +Languages in notes and actors) there was little excuse not to be feasible.

+ +

Whenever you post a note containing tags, you can choose whether to +make those tags canonical. This means that, for instance, the tags +#run and #running become the 'same', meaning that when you click on +the link for the #run tag, you'll also see notes tagged #running. You +can opt out of the behaviour by unchecking the "Make note tags +canonical". An identical process occurs for people tags.

+ +

Internally, this transformation is accomplished by splitting the tag +into words and stemming each word.

+ +

Related Tags

+ +

In a tag feed, you can see tags that are often used together with the +one you're seeing. This can be useful, for instance, for finding other +content you'd be interested in.

+ +

Improved Tag feeds

+ +

When you click on a tag, be it a note tag or a person tag, you'll see +a feed of notes/people with that tag. You can also edit the feeds you +see in your left panel, so you can follow a given tag.

+ +

Mute Self Tags and Note Tags

+ +

If you don't like seeing a given tag in your feeds, for whatever +reason, you can choose to mute it. You can mute a note tag or a person +tag, in which case you wouldn't see any notes from people with that +tag.

+ + + + +
+
+ diff --git a/v3/milestone-tags.md b/v3/milestone-tags.md index 4dd9d3c..d49b574 100644 --- a/v3/milestone-tags.md +++ b/v3/milestone-tags.md @@ -1,34 +1,66 @@ -Milestone: Tag handling +Milestone: Tags + +> Due to the high density of technical aspects, we decided to keep this blog +> post more on the light side and focus on explaining the new functionalities. +> Check our Wiki Milestone entry for all the juicy details. **[>WIKI Milestone entry](https://agile.gnusocial.rocks/doku.php?id=milestones:tags)** -See also [our update on self tags]() +GNU social v2 has tags and lists. It allows you to: +- search for an `#hashtag` and see a stream of notes tagged with it; +- make lists of actors and mention them with `@#list_name` +- self tag and enter a list of people in your instance with the same self tag -# Tag Wrangling +It is limited with regards to federation of self tags and the `@#list_name` can't +target remote actors even when they are inside your list. + +## What's new with v3? + +### Federated self tags + +We now federate self tags and lists, so that constraint from v2 was moved out of +the way. + +In the future, the use of these tags can allow you to find people, +groups and even individual notes that have a tag you're interested in. We only +mean filtering, not magic recommendation algorithms. + +### Tag Wrangling + +Proposed by [@licho](https://archiveofourown.org/users/licho) in Tue, 02 Jun 2019 17:52:07 GMT: + +> I like the tag wrangling feature of AO3, which I think would help for cases of synonymous tags like #introduction and #introductions +> +> https://archiveofourown.org/wrangling_guidelines/11 +> +> Is it feasible for !gnusocial ? Or would it cause problems? + +The answer is **yes** and will be released with v3. With the addition of +[Languages in notes and actors]((https://gnusocial.rocks/v3/milestone-notes-and-actors-with-languages.html)) there was little excuse not to be feasible. Whenever you post a note containing tags, you can choose whether to make those tags canonical. This means that, for instance, the tags -#run and #running become the 'same', meaning that when you click on -the link for the #run tag, you'll also see notes tagged #running. You +`#run` and `#running` become the 'same', meaning that when you click on +the link for the `#run` tag, you'll also see notes tagged #running. You can opt out of the behaviour by unchecking the "Make note tags canonical". An identical process occurs for people tags. Internally, this transformation is accomplished by splitting the tag into words and [stemming](https://en.wikipedia.org/wiki/Stemming) each word. -# Tag feeds - -When you click on a tag, be it a note tag or a person tag, you'll see -a feed of notes/people with that tag. You can also edit the feeds you -see in your left panel, so you can follow a given tag. - -# Related Tags +### Related Tags In a tag feed, you can see tags that are often used together with the one you're seeing. This can be useful, for instance, for finding other content you'd be interested in. -# Muteable Self Tags and Note Tags +# Improved Tag feeds + +When you click on a tag, be it a note tag or a person tag, you'll see +a feed of notes/people with that tag. You can also edit the feeds you +see in your left panel, so you can follow a given tag. + +# Mute Self Tags and Note Tags If you don't like seeing a given tag in your feeds, for whatever reason, you can choose to mute it. You can mute a note tag or a person diff --git a/v3/updates-finish-the-avatar-component.html b/v3/updates-finish-the-avatar-component.html index bb0f062..72abf76 100644 --- a/v3/updates-finish-the-avatar-component.html +++ b/v3/updates-finish-the-avatar-component.html @@ -123,6 +123,9 @@ GNU social development team + + + diff --git a/v3/updates-implement-storeremotemedia-for-v3-and-port-embed.html b/v3/updates-implement-storeremotemedia-for-v3-and-port-embed.html index 92ee53b..3342922 100644 --- a/v3/updates-implement-storeremotemedia-for-v3-and-port-embed.html +++ b/v3/updates-implement-storeremotemedia-for-v3-and-port-embed.html @@ -63,6 +63,9 @@ attempts to generate a page preview from open graph and oembed. I.e., acts when + + + diff --git a/v3/updates-improve-the-attachments-system.html b/v3/updates-improve-the-attachments-system.html index 8b2b0ba..39f33f5 100644 --- a/v3/updates-improve-the-attachments-system.html +++ b/v3/updates-improve-the-attachments-system.html @@ -96,6 +96,9 @@ any remote URL being shared in a note. + + + diff --git a/v3/updates-interface-and-accessibility.html b/v3/updates-interface-and-accessibility.html index d3d0129..f5530a8 100644 --- a/v3/updates-interface-and-accessibility.html +++ b/v3/updates-interface-and-accessibility.html @@ -128,6 +128,9 @@ markup, we hope to achieve an accessible, fast and polished structure by which a + + + diff --git a/v3/updates-selftags.md b/v3/updates-selftags.md deleted file mode 100644 index e374c4b..0000000 --- a/v3/updates-selftags.md +++ /dev/null @@ -1,23 +0,0 @@ -Updates: Add selftags - -Under [our milestone for better tag -handling](https://www.gnusocial.rocks/v3/milestone-tags.html), one of -the tasks has been to add the ability for users to add tags to -themselves, so that they may be found and recommended to those -interested in said tags. - -In the future, the use of these tags will allow you to find people, -groups and even individual notes that have a tag you're interested in. -This process is opt-in, yet simple - we don't want to make have a -recommendation algorithm which could hide information. - -These tags will be subject to potential moderation, depending on the -preferences of your instance's sysadmin. Remember: if you don't agree -with them, you can always create your own instance! That's the beauty -of the fediverse. - -The process for adding tags is simple: in your profile settings page, -there will be a text field where you can type a list of comma or space -separated tags. These will then show up in your profile, but you can -change them at any time. And worry not, we don't keep a record of your -past tags. diff --git a/v3/updates-v3-blog.html b/v3/updates-v3-blog.html index 819f036..8c683e7 100644 --- a/v3/updates-v3-blog.html +++ b/v3/updates-v3-blog.html @@ -71,6 +71,9 @@ forget to subscribe!

+ + +