Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@actionsflow/trigger-activitypub

Package Overview
Dependencies
Maintainers
4
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@actionsflow/trigger-activitypub

Actionsflow trigger for ActivityPub

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
4
Weekly downloads
 
Created
Source

@actionsflow/activitypub-trigger

This is an Actionsflow trigger for ActivityPub.

Install

npm i @actionsflow/trigger-activitypub --save

Usage

on:
  activitypub:
    host: example.org
    user: test

Options

  • host, required, hostname of source ActivityPub instance
  • user, required, source user account

You can use General Config for Actionsflow Trigger for more customization.

Outputs

This trigger's outputs will be the following object.

An outputs example:

{
  "uri": "uniqueId",
  "message": "hello world title",
  "replyto": "optionalUniqueReplyId"
}

You can use the outputs like this:

jobs:
  print:
    name: Print
    runs-on: ubuntu-latest
    steps:
      - name: Print Post Outputs
        env:
          uri: ${{on.activitypub.outputs.uri}}
          message: ${{on.activitypub.outputs.message}}
          reply: ${{ on.activitypub.outputs.replyto}}
        run: |
          echo uri: $uri
          echo message: $message
          echo reply: $reply

Limitations

Please note that:

  • Direct replies only. By design, the trigger will only fire for direct replies from the original account owner.
  • 30 minute Cutoff. Similarly, the trigger will ignore any posts made within a cutoff period of half-an-hour. Any posts made before T - 30 will be ignored to prevent accidental spamming.
  • No media. We do not currently support media attachments.
  • No polls. We do not currently support poll posts.
  • Public only. We only support public ActivityPub posts.
  • English only. We currently only support posts using the en (English) language code.

Keywords

FAQs

Package last updated on 17 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc