mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-01-25 07:39:43 +01:00
don't use receiver for permsFrom funcs
This commit is contained in:
parent
480ce48a3e
commit
3674223d27
@ -272,15 +272,15 @@ func (s *Subscriptions) ProcessDomainPermissionSubscription(
|
||||
|
||||
// text/csv
|
||||
case gtsmodel.DomainPermSubContentTypeCSV:
|
||||
wantedPerms, err = s.permsFromCSV(l, permSub.PermissionType, resp.Body)
|
||||
wantedPerms, err = permsFromCSV(l, permSub.PermissionType, resp.Body)
|
||||
|
||||
// application/json
|
||||
case gtsmodel.DomainPermSubContentTypeJSON:
|
||||
wantedPerms, err = s.permsFromJSON(l, permSub.PermissionType, resp.Body)
|
||||
wantedPerms, err = permsFromJSON(l, permSub.PermissionType, resp.Body)
|
||||
|
||||
// text/plain
|
||||
case gtsmodel.DomainPermSubContentTypePlain:
|
||||
wantedPerms, err = s.permsFromPlain(l, permSub.PermissionType, resp.Body)
|
||||
wantedPerms, err = permsFromPlain(l, permSub.PermissionType, resp.Body)
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
@ -516,7 +516,7 @@ func (s *Subscriptions) processDomainPermission(
|
||||
return created, nil
|
||||
}
|
||||
|
||||
func (s *Subscriptions) permsFromCSV(
|
||||
func permsFromCSV(
|
||||
l log.Entry,
|
||||
permType gtsmodel.DomainPermissionType,
|
||||
body io.ReadCloser,
|
||||
@ -615,7 +615,7 @@ func (s *Subscriptions) permsFromCSV(
|
||||
return perms, nil
|
||||
}
|
||||
|
||||
func (s *Subscriptions) permsFromJSON(
|
||||
func permsFromJSON(
|
||||
l log.Entry,
|
||||
permType gtsmodel.DomainPermissionType,
|
||||
body io.ReadCloser,
|
||||
@ -675,7 +675,7 @@ func (s *Subscriptions) permsFromJSON(
|
||||
return perms, nil
|
||||
}
|
||||
|
||||
func (s *Subscriptions) permsFromPlain(
|
||||
func permsFromPlain(
|
||||
l log.Entry,
|
||||
permType gtsmodel.DomainPermissionType,
|
||||
body io.ReadCloser,
|
||||
|
Loading…
Reference in New Issue
Block a user