mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-20 11:07:30 -06:00
continue work on notifs, tidy some stuff up elsewhere
This commit is contained in:
parent
5853179728
commit
6eaeaa4d18
28 changed files with 1596 additions and 1197 deletions
|
|
@ -280,22 +280,4 @@ func (f *federator) GetTransportForUser(username string) (transport.Transport, e
|
|||
return transport, nil
|
||||
}
|
||||
|
||||
func sameActor(activityActor vocab.ActivityStreamsActorProperty, followActor vocab.ActivityStreamsActorProperty) bool {
|
||||
if activityActor == nil || followActor == nil {
|
||||
return false
|
||||
}
|
||||
for aIter := activityActor.Begin(); aIter != activityActor.End(); aIter = aIter.Next() {
|
||||
for fIter := followActor.Begin(); fIter != followActor.End(); fIter = fIter.Next() {
|
||||
if aIter.GetIRI() == nil {
|
||||
return false
|
||||
}
|
||||
if fIter.GetIRI() == nil {
|
||||
return false
|
||||
}
|
||||
if aIter.GetIRI().String() == fIter.GetIRI().String() {
|
||||
return true
|
||||
}
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue