Skip to content

Instantly share code, notes, and snippets.

@thomasweitzel
Last active November 23, 2022 12:22
Show Gist options
  • Save thomasweitzel/4e6f3e7f95f858c5260c5326c68be58c to your computer and use it in GitHub Desktop.
Save thomasweitzel/4e6f3e7f95f858c5260c5326c68be58c to your computer and use it in GitHub Desktop.
PlantUML activity diagram for visibility of a Mastodon toot
@startuml
<style>
diamond {
BackgroundColor #palegreen
LineColor #green
LineThickness 2.5
}
</style>
!$START = "Public toot by @name"
!$HOME = "Toot shows in **Home** timeline"
!$LOCAL = "Toot shows in **Local** timeline"
!$FEDERATED = "Toot shows in **Federated** timeline"
!$NEVER = "Toot **never** reaches your instance"
!$Q_FOLLOW = "Are you following @name?"
!$Q_INSTANCE = "Is @name on your instance?"
!$Q_INDIRECT = "Does someone on your\ninstance follow @name?"
!$Q_OTHER = "Did your instance\nbecome aware of the\ntoot in some other way,\ne.g. a boost/reply by someone\nyou don't follow on your instance,\nor a local search of the URL\nby someone on your instance?"
title The visibility of a toot\n<sub>In what timeline will a toot appear?</sub>\n
start
:$START;
if ($Q_FOLLOW) then (**YES**)
#lightblue :$HOME;
else (**NO**)
if ($Q_INSTANCE) then (**YES**)
#lightblue :$LOCAL;
else (**NO**)
if ($Q_INDIRECT) then (**YES**)
#lightblue :$FEDERATED;
else (**NO**)
if ($Q_OTHER) then (**YES**)
#lightblue :$FEDERATED;
else (**NO**)
#pink :$NEVER;
endif
endif
endif
endif
stop
right footer "Created with PlantUML by Thomas Weitzel\nBased on **https://github.com/mastodon/mastodon/issues/6812**\nand **https://axbom.com/mastodon-tips**\nSource here: **https://gist.github.com/thomasweitzel/4e6f3e7f95f858c5260c5326c68be58c**"
@enduml
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment