Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Remove unused query
Gabe Kangas4f7f2137a858
diff --git a/activitypub/persistence/persistence.go b/activitypub/persistence/persistence.goindex d375e7d2d9..1f631053a4 100644--- a/activitypub/persistence/persistence.go+++ b/activitypub/persistence/persistence.go@@ -277,12 +277,6 @@ func AddToOutbox(iri string, itemData []byte, typeString string, isLiveNotificatreturn tx.Commit()}-// GetObjectByID will return a string representation of a single object by the ID.-func GetObjectByID(id string) (string, error) {- value, err := _datastore.GetQueries().GetObjectFromOutboxByID(context.Background(), id)- return string(value), err-}-// GetObjectByIRI will return a string representation of a single object by the IRI.func GetObjectByIRI(iri string) (string, bool, time.Time, error) {row, err := _datastore.GetQueries().GetObjectFromOutboxByIRI(context.Background(), iri)diff --git a/db/db.go b/db/db.goindex cbb8c9a5d8..f30b89ec02 100644--- a/db/db.go+++ b/db/db.go@@ -1,6 +1,6 @@// Code generated by sqlc. DO NOT EDIT.// versions:-// sqlc v1.13.0+// sqlc v1.14.0package dbdiff --git a/db/models.go b/db/models.goindex 91d932907c..94e23b7d65 100644--- a/db/models.go+++ b/db/models.go@@ -1,6 +1,6 @@// Code generated by sqlc. DO NOT EDIT.// versions:-// sqlc v1.13.0+// sqlc v1.14.0package dbdiff --git a/db/query.sql b/db/query.sqlindex 6e386f8024..4dfe8c6b8b 100644--- a/db/query.sql+++ b/db/query.sql@@ -29,8 +29,6 @@ SELECT iri, inbox, name, username, image, request, request_object, created_at, a-- name: GetOutboxWithOffset :manySELECT value FROM ap_outbox LIMIT $1 OFFSET $2;--- name: GetObjectFromOutboxByID :one-SELECT value FROM ap_outbox WHERE iri = $1;-- name: GetObjectFromOutboxByIRI :oneSELECT value, live_notification, created_at FROM ap_outbox WHERE iri = $1;diff --git a/db/query.sql.go b/db/query.sql.goindex 00975e9eb9..ad4cb81f8b 100644--- a/db/query.sql.go+++ b/db/query.sql.go@@ -1,6 +1,6 @@// Code generated by sqlc. DO NOT EDIT.// versions:-// sqlc v1.13.0+// sqlc v1.14.0// source: query.sqlpackage db@@ -439,17 +439,6 @@ func (q *Queries) GetNotificationDestinationsForChannel(ctx context.Context, chareturn items, nil}-const getObjectFromOutboxByID = `-- name: GetObjectFromOutboxByID :one-SELECT value FROM ap_outbox WHERE iri = $1-`--func (q *Queries) GetObjectFromOutboxByID(ctx context.Context, iri string) ([]byte, error) {- row := q.db.QueryRowContext(ctx, getObjectFromOutboxByID, iri)- var value []byte- err := row.Scan(&value)- return value, err-}-const getObjectFromOutboxByIRI = `-- name: GetObjectFromOutboxByIRI :oneSELECT value, live_notification, created_at FROM ap_outbox WHERE iri = $1`