diff options
| author | 2021-05-27 16:06:24 +0200 | |
|---|---|---|
| committer | 2021-05-27 16:06:24 +0200 | |
| commit | 40add686913b7eb6edd5a780e37e7513b43a337f (patch) | |
| tree | 75549dff97e5a15f732a505d4d00aa7a686bdad8 /internal/federation/federatingdb/liked.go | |
| parent | Faves (#31) (diff) | |
| download | gotosocial-40add686913b7eb6edd5a780e37e7513b43a337f.tar.xz | |
Notifications (#34)
Notifications working for:
* Mentions
* Faves
* New follow requests
* New followers
Diffstat (limited to 'internal/federation/federatingdb/liked.go')
| -rw-r--r-- | internal/federation/federatingdb/liked.go | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/internal/federation/federatingdb/liked.go b/internal/federation/federatingdb/liked.go new file mode 100644 index 000000000..5645d6f1e --- /dev/null +++ b/internal/federation/federatingdb/liked.go @@ -0,0 +1,26 @@ +package federatingdb + +import ( + "context" + "net/url" + + "github.com/go-fed/activity/streams/vocab" + "github.com/sirupsen/logrus" +) + +// Liked obtains the Liked Collection for an actor with the +// given id. +// +// If modified, the library will then call Update. +// +// The library makes this call only after acquiring a lock first. +func (f *federatingDB) Liked(c context.Context, actorIRI *url.URL) (liked vocab.ActivityStreamsCollection, err error) { + l := f.log.WithFields( + logrus.Fields{ + "func": "Liked", + "actorIRI": actorIRI.String(), + }, + ) + l.Debugf("entering LIKED function with actorIRI %s", actorIRI.String()) + return nil, nil +} |
