summaryrefslogtreecommitdiff
path: root/internal/ap
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2023-01-27 14:48:11 +0100
committerLibravatar GitHub <noreply@github.com>2023-01-27 14:48:11 +0100
commit3283900b0d0b98e5ca956f61ce09ab373cf0cbe8 (patch)
treef7dc654ea2d510e0c02d63d8a174908f1e25c680 /internal/ap
parent[docs] Add Flag documentation to federation docs (#1393) (diff)
downloadgotosocial-3283900b0d0b98e5ca956f61ce09ab373cf0cbe8.tar.xz
[feature] Federate reports to remote instance as Flag (if desired) (#1386)
* reports federate out, we did it lxds * fix optional line start (should be optional slash)
Diffstat (limited to 'internal/ap')
-rw-r--r--internal/ap/extract.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/ap/extract.go b/internal/ap/extract.go
index 20420e02c..ab51b0858 100644
--- a/internal/ap/extract.go
+++ b/internal/ap/extract.go
@@ -621,7 +621,7 @@ func ExtractActor(i WithActor) (*url.URL, error) {
return nil, errors.New("no iri found for actor prop")
}
-// ExtractObject extracts a URL object from a WithObject interface.
+// ExtractObject extracts the first URL object from a WithObject interface.
func ExtractObject(i WithObject) (*url.URL, error) {
objectProp := i.GetActivityStreamsObject()
if objectProp == nil {