Skip to content

Commit

Permalink
Adding Bovine ActivityPub routes to server
Browse files Browse the repository at this point in the history
Signed-off-by: John Andersen <[email protected]>
  • Loading branch information
pdxjohnny committed Oct 22, 2023
1 parent 21eb443 commit 92557a0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scitt_emulator/federation_activitypub_bovine.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
import tomli_w
import bovine
import aiohttp
from bovine_herd import BovineHerd
from bovine_pubsub import BovinePubSub
from bovine.activitystreams import factories_for_actor_object
from bovine.clients import lookup_uri_with_webfinger
from mechanical_bull.handlers import HandlerEvent, HandlerAPIVersion
Expand Down Expand Up @@ -83,7 +85,10 @@ def __init__(self, app, signals, config_path):
"federate_created_entries_socket",
)

self.initialize_service()
BovinePubSub(app)
BovineHerd(app)

# self.initialize_service()

def initialize_service(self):
config_toml_path = pathlib.Path(self.workspace, "config.toml")
Expand Down Expand Up @@ -185,6 +190,7 @@ def created_entry(
scitt_service: SCITTServiceEmulator,
created_entry: SCITTSignalsFederationCreatedEntry,
):
return
# NOTE Test of sending signal to submit federated claim -> self.signals.federation.submit_claim.send(self, claim=created_entry.claim)
with socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) as client:
client.connect(str(self.federate_created_entries_socket_path.resolve()))
Expand Down

0 comments on commit 92557a0

Please sign in to comment.