mirror of
https://github.com/owncast/owncast.git
synced 2024-11-21 12:18:02 +03:00
This commit is contained in:
parent
c9298def5b
commit
e166e009aa
1 changed files with 8 additions and 0 deletions
|
@ -13,6 +13,14 @@ import (
|
|||
func handleLikeRequest(c context.Context, activity vocab.ActivityStreamsLike) error {
|
||||
object := activity.GetActivityStreamsObject()
|
||||
actorReference := activity.GetActivityStreamsActor()
|
||||
if object.Len() < 1 {
|
||||
return errors.New("like activity is missing object")
|
||||
}
|
||||
|
||||
if actorReference.Len() < 1 {
|
||||
return errors.New("like activity is missing actor")
|
||||
}
|
||||
|
||||
objectIRI := object.At(0).GetIRI().String()
|
||||
actorIRI := actorReference.At(0).GetIRI().String()
|
||||
|
||||
|
|
Loading…
Reference in a new issue