aboutsummaryrefslogtreecommitdiff
path: root/resources/profile.go
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2022-12-29 20:08:16 +0000
committerJulio Capote <jcapote@gmail.com>2022-12-29 20:08:16 +0000
commita4288b06bf13210721c8f2fae64bc12c118f9041 (patch)
tree49808a68d61aa450c6625477e468968fd3198ded /resources/profile.go
parent5a990719a02f4fd33817a2188be17b3b50498b49 (diff)
downloadcommunique-a4288b06bf13210721c8f2fae64bc12c118f9041.tar.gz
refactor
Diffstat (limited to 'resources/profile.go')
-rw-r--r--resources/profile.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/resources/profile.go b/resources/profile.go
deleted file mode 100644
index 971b11c..0000000
--- a/resources/profile.go
+++ /dev/null
@@ -1,21 +0,0 @@
-package resources
-
-import (
- "git.capotej.com/capotej/communique/urls"
- "github.com/go-fed/activity/streams"
-)
-
-func RenderProfile(name, domain string) (map[string]interface{}, error) {
- u, err := urls.UrlInbox(name, domain)
- if err != nil {
- return nil, err
- }
-
- inb := streams.NewActivityStreamsInboxProperty()
- inb.SetIRI(u)
-
- p := streams.NewActivityStreamsService()
- p.SetActivityStreamsInbox(inb)
-
- return streams.Serialize(p)
-}