GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - blr-today/snac2: A light-fork of snac2 to support Event publications

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
README.md
README.md
 
 

Repository files navigation

snac2 for fedi.blr.today

This is a ultra-light fork of snac2, the minimalistic ActivityPub server by grunfink.

It exists to run fedi.blr.today, which publishes events to the Fediverse. Upstream snac only publishes Note, Question and friends. This fork lets it publish Event objects in the shape described by FEP-8a8e, so that Mastodon, Mobilizon, Gancio and other software display them as events.

What the fork changes

The Mastodon API (POST and PUT /api/v1/statuses) accepts these extra parameters:

Parameter Maps to
event_name name (required with event_start)
event_start startTime
event_end endTime
event_url url (defaults to the object id)
event_location_name location.name
event_location_address location.address.streetAddress
event_latitude location.latitude
event_longitude location.longitude

When event_start and event_name are present, the post becomes an Event instead of a Note. The status text is also copied to summary, because Mastodon renders an Event's summary as its body. Events count as the user's own posts in outboxes, timelines and exports.

The diff is fairly small: <80 lines of changes.

More details about fork maintenance

Branches

  • main: this README and the upstream watch workflow.
  • event-publication: upstream master plus the fork's commits, rebased onto every new upstream release.
  • master: a mirror of upstream.

Every push to event-publication builds a container image and pushes it to ghcr.io/blr-today/snac2, tagged with the workflow run number.

Upstream releases

upstream.yml runs every day. It fails when upstream has a release tag that event-publication does not contain yet, which is the signal to rebase and push a new image.

Contributing upstream

Most of this code was written with the help of LLMs, so there are no plans to send it upstream. It is kept small and rebased instead. Please report snac bugs upstream, not here, unless they involve Events.

License

Same as upstream: MIT. See LICENSE on the event-publication branch.

About

A light-fork of snac2 to support Event publications

codeberg.org/grunfink/snac2

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.