| 
									
										
										
										
											2021-03-07 13:05:33 +01:00
										 |  |  | /* | 
					
						
							|  |  |  |    GoToSocial | 
					
						
							|  |  |  |    Copyright (C) 2021 GoToSocial Authors admin@gotosocial.org | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |    This program is free software: you can redistribute it and/or modify | 
					
						
							|  |  |  |    it under the terms of the GNU Affero General Public License as published by | 
					
						
							|  |  |  |    the Free Software Foundation, either version 3 of the License, or | 
					
						
							|  |  |  |    (at your option) any later version. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |    This program is distributed in the hope that it will be useful, | 
					
						
							|  |  |  |    but WITHOUT ANY WARRANTY; without even the implied warranty of | 
					
						
							|  |  |  |    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
					
						
							|  |  |  |    GNU Affero General Public License for more details. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |    You should have received a copy of the GNU Affero General Public License | 
					
						
							|  |  |  |    along with this program.  If not, see <http://www.gnu.org/licenses/>. | 
					
						
							|  |  |  | */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | package federation | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import ( | 
					
						
							|  |  |  | 	"context" | 
					
						
							| 
									
										
										
										
											2021-04-24 18:15:08 +02:00
										 |  |  | 	"errors" | 
					
						
							|  |  |  | 	"fmt" | 
					
						
							| 
									
										
										
										
											2021-03-07 13:05:33 +01:00
										 |  |  | 	"net/http" | 
					
						
							|  |  |  | 	"net/url" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	"github.com/go-fed/activity/pub" | 
					
						
							|  |  |  | 	"github.com/go-fed/activity/streams/vocab" | 
					
						
							| 
									
										
										
										
											2021-04-01 20:46:45 +02:00
										 |  |  | 	"github.com/sirupsen/logrus" | 
					
						
							| 
									
										
										
										
											2021-04-24 18:15:08 +02:00
										 |  |  | 	"github.com/superseriousbusiness/gotosocial/internal/config" | 
					
						
							| 
									
										
										
										
											2021-04-01 20:46:45 +02:00
										 |  |  | 	"github.com/superseriousbusiness/gotosocial/internal/db" | 
					
						
							| 
									
										
										
										
											2021-04-29 17:54:28 +02:00
										 |  |  | 	"github.com/superseriousbusiness/gotosocial/internal/db/gtsmodel" | 
					
						
							| 
									
										
										
										
											2021-04-26 21:18:39 +02:00
										 |  |  | 	"github.com/superseriousbusiness/gotosocial/internal/transport" | 
					
						
							| 
									
										
										
										
											2021-05-02 19:51:12 +02:00
										 |  |  | 	"github.com/superseriousbusiness/gotosocial/internal/typeutils" | 
					
						
							| 
									
										
										
										
											2021-04-24 18:15:08 +02:00
										 |  |  | 	"github.com/superseriousbusiness/gotosocial/internal/util" | 
					
						
							| 
									
										
										
										
											2021-03-07 13:05:33 +01:00
										 |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-05-02 19:51:12 +02:00
										 |  |  | // federatingProtocol implements the go-fed federating protocol interface | 
					
						
							|  |  |  | type federatingProtocol struct { | 
					
						
							| 
									
										
										
										
											2021-04-26 21:18:39 +02:00
										 |  |  | 	db                  db.DB | 
					
						
							|  |  |  | 	log                 *logrus.Logger | 
					
						
							|  |  |  | 	config              *config.Config | 
					
						
							|  |  |  | 	transportController transport.Controller | 
					
						
							| 
									
										
										
										
											2021-05-02 19:51:12 +02:00
										 |  |  | 	typeConverter       typeutils.TypeConverter | 
					
						
							| 
									
										
										
										
											2021-03-07 13:05:33 +01:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-05-02 19:51:12 +02:00
										 |  |  | // newFederatingProtocol returns the gotosocial implementation of the GTSFederatingProtocol interface | 
					
						
							|  |  |  | func newFederatingProtocol(db db.DB, log *logrus.Logger, config *config.Config, transportController transport.Controller, typeConverter typeutils.TypeConverter) pub.FederatingProtocol { | 
					
						
							|  |  |  | 	return &federatingProtocol{ | 
					
						
							| 
									
										
										
										
											2021-04-26 21:18:39 +02:00
										 |  |  | 		db:                  db, | 
					
						
							|  |  |  | 		log:                 log, | 
					
						
							|  |  |  | 		config:              config, | 
					
						
							|  |  |  | 		transportController: transportController, | 
					
						
							| 
									
										
										
										
											2021-05-02 19:51:12 +02:00
										 |  |  | 		typeConverter: typeConverter, | 
					
						
							| 
									
										
										
										
											2021-04-24 18:15:08 +02:00
										 |  |  | 	} | 
					
						
							| 
									
										
										
										
											2021-03-07 13:05:33 +01:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-04-20 18:14:23 +02:00
										 |  |  | /* | 
					
						
							|  |  |  | 	GO FED FEDERATING PROTOCOL INTERFACE | 
					
						
							|  |  |  | 	FederatingProtocol contains behaviors an application needs to satisfy for the | 
					
						
							|  |  |  | 	full ActivityPub S2S implementation to be supported by this library. | 
					
						
							|  |  |  | 	It is only required if the client application wants to support the server-to- | 
					
						
							|  |  |  | 	server, or federating, protocol. | 
					
						
							|  |  |  | 	It is passed to the library as a dependency injection from the client | 
					
						
							|  |  |  | 	application. | 
					
						
							|  |  |  | */ | 
					
						
							| 
									
										
										
										
											2021-03-07 13:05:33 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-04-20 18:14:23 +02:00
										 |  |  | // PostInboxRequestBodyHook callback after parsing the request body for a federated request | 
					
						
							|  |  |  | // to the Actor's inbox. | 
					
						
							|  |  |  | // | 
					
						
							|  |  |  | // Can be used to set contextual information based on the Activity | 
					
						
							|  |  |  | // received. | 
					
						
							|  |  |  | // | 
					
						
							|  |  |  | // Only called if the Federated Protocol is enabled. | 
					
						
							|  |  |  | // | 
					
						
							|  |  |  | // Warning: Neither authentication nor authorization has taken place at | 
					
						
							|  |  |  | // this time. Doing anything beyond setting contextual information is | 
					
						
							|  |  |  | // strongly discouraged. | 
					
						
							|  |  |  | // | 
					
						
							|  |  |  | // If an error is returned, it is passed back to the caller of | 
					
						
							|  |  |  | // PostInbox. In this case, the DelegateActor implementation must not | 
					
						
							|  |  |  | // write a response to the ResponseWriter as is expected that the caller | 
					
						
							|  |  |  | // to PostInbox will do so when handling the error. | 
					
						
							| 
									
										
										
										
											2021-05-02 19:51:12 +02:00
										 |  |  | func (f *federatingProtocol) PostInboxRequestBodyHook(ctx context.Context, r *http.Request, activity pub.Activity) (context.Context, error) { | 
					
						
							| 
									
										
										
										
											2021-04-24 18:15:08 +02:00
										 |  |  | 	l := f.log.WithFields(logrus.Fields{ | 
					
						
							|  |  |  | 		"func":      "PostInboxRequestBodyHook", | 
					
						
							|  |  |  | 		"useragent": r.UserAgent(), | 
					
						
							|  |  |  | 		"url":       r.URL.String(), | 
					
						
							|  |  |  | 	}) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-04-26 21:18:39 +02:00
										 |  |  | 	if activity == nil { | 
					
						
							|  |  |  | 		err := errors.New("nil activity in PostInboxRequestBodyHook") | 
					
						
							|  |  |  | 		l.Debug(err) | 
					
						
							|  |  |  | 		return nil, err | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-05-02 19:51:12 +02:00
										 |  |  | 	ctxWithActivity := context.WithValue(ctx, util.APActivity, activity) | 
					
						
							| 
									
										
										
										
											2021-04-24 18:15:08 +02:00
										 |  |  | 	return ctxWithActivity, nil | 
					
						
							| 
									
										
										
										
											2021-03-07 13:05:33 +01:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-04-20 18:14:23 +02:00
										 |  |  | // AuthenticatePostInbox delegates the authentication of a POST to an | 
					
						
							|  |  |  | // inbox. | 
					
						
							|  |  |  | // | 
					
						
							|  |  |  | // If an error is returned, it is passed back to the caller of | 
					
						
							|  |  |  | // PostInbox. In this case, the implementation must not write a | 
					
						
							|  |  |  | // response to the ResponseWriter as is expected that the client will | 
					
						
							|  |  |  | // do so when handling the error. The 'authenticated' is ignored. | 
					
						
							|  |  |  | // | 
					
						
							|  |  |  | // If no error is returned, but authentication or authorization fails, | 
					
						
							|  |  |  | // then authenticated must be false and error nil. It is expected that | 
					
						
							|  |  |  | // the implementation handles writing to the ResponseWriter in this | 
					
						
							|  |  |  | // case. | 
					
						
							|  |  |  | // | 
					
						
							|  |  |  | // Finally, if the authentication and authorization succeeds, then | 
					
						
							|  |  |  | // authenticated must be true and error nil. The request will continue | 
					
						
							|  |  |  | // to be processed. | 
					
						
							| 
									
										
										
										
											2021-05-02 19:51:12 +02:00
										 |  |  | func (f *federatingProtocol) AuthenticatePostInbox(ctx context.Context, w http.ResponseWriter, r *http.Request) (context.Context, bool, error) { | 
					
						
							| 
									
										
										
										
											2021-04-26 21:18:39 +02:00
										 |  |  | 	l := f.log.WithFields(logrus.Fields{ | 
					
						
							|  |  |  | 		"func":      "AuthenticatePostInbox", | 
					
						
							|  |  |  | 		"useragent": r.UserAgent(), | 
					
						
							|  |  |  | 		"url":       r.URL.String(), | 
					
						
							|  |  |  | 	}) | 
					
						
							|  |  |  | 	l.Trace("received request to authenticate") | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-05-02 19:51:12 +02:00
										 |  |  | 	requestedAccountI := ctx.Value(util.APAccount) | 
					
						
							|  |  |  | 	if requestedAccountI == nil { | 
					
						
							|  |  |  | 		return ctx, false, errors.New("requested account not set in context") | 
					
						
							| 
									
										
										
										
											2021-04-29 17:54:28 +02:00
										 |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-05-02 19:51:12 +02:00
										 |  |  | 	requestedAccount, ok := requestedAccountI.(*gtsmodel.Account) | 
					
						
							|  |  |  | 	if !ok || requestedAccount == nil { | 
					
						
							|  |  |  | 		return ctx, false, errors.New("requested account not parsebale from context") | 
					
						
							| 
									
										
										
										
											2021-04-29 17:54:28 +02:00
										 |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	transport, err := f.transportController.NewTransport(requestedAccount.PublicKeyURI, requestedAccount.PrivateKey) | 
					
						
							|  |  |  | 	if err != nil { | 
					
						
							| 
									
										
										
										
											2021-05-02 19:51:12 +02:00
										 |  |  | 		return ctx, false, fmt.Errorf("error creating transport: %s", err) | 
					
						
							| 
									
										
										
										
											2021-04-29 17:54:28 +02:00
										 |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-05-02 19:51:12 +02:00
										 |  |  | 	requestingPublicKeyID, err := AuthenticateFederatedRequest(transport, r) | 
					
						
							| 
									
										
										
										
											2021-04-29 17:54:28 +02:00
										 |  |  | 	if err != nil { | 
					
						
							| 
									
										
										
										
											2021-05-02 19:51:12 +02:00
										 |  |  | 		l.Debugf("request not authenticated: %s", err) | 
					
						
							|  |  |  | 		return ctx, false, fmt.Errorf("not authenticated: %s", err) | 
					
						
							| 
									
										
										
										
											2021-04-29 17:54:28 +02:00
										 |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-05-02 19:51:12 +02:00
										 |  |  | 	requestingAccount := >smodel.Account{} | 
					
						
							|  |  |  | 	if err := f.db.GetWhere("public_key_uri", requestingPublicKeyID.String(), requestingAccount); err != nil { | 
					
						
							|  |  |  | 		// there's been a proper error so return it | 
					
						
							| 
									
										
										
										
											2021-04-29 17:54:28 +02:00
										 |  |  | 		if _, ok := err.(db.ErrNoEntries); !ok { | 
					
						
							| 
									
										
										
										
											2021-05-02 19:51:12 +02:00
										 |  |  | 			return ctx, false, fmt.Errorf("error getting requesting account with public key id %s: %s", requestingPublicKeyID.String(), err) | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 		// we just don't know this account (yet) so try to dereference it | 
					
						
							|  |  |  | 		// TODO: slow-fed | 
					
						
							|  |  |  | 		person, err := DereferenceAccount(transport, requestingPublicKeyID) | 
					
						
							|  |  |  | 		if err != nil { | 
					
						
							|  |  |  | 			return ctx, false, fmt.Errorf("error dereferencing account with public key id %s: %s", requestingPublicKeyID.String(), err) | 
					
						
							| 
									
										
										
										
											2021-04-29 17:54:28 +02:00
										 |  |  | 		} | 
					
						
							| 
									
										
										
										
											2021-05-02 19:51:12 +02:00
										 |  |  | 		a, err := f.typeConverter.ASPersonToAccount(person) | 
					
						
							|  |  |  | 		if err != nil { | 
					
						
							|  |  |  | 			return ctx, false, fmt.Errorf("error converting person with public key id %s to account: %s", requestingPublicKeyID.String(), err) | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 		requestingAccount = a | 
					
						
							| 
									
										
										
										
											2021-04-29 17:54:28 +02:00
										 |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-05-02 19:51:12 +02:00
										 |  |  | 	return newContext, true, nil | 
					
						
							| 
									
										
										
										
											2021-03-07 13:05:33 +01:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-04-20 18:14:23 +02:00
										 |  |  | // Blocked should determine whether to permit a set of actors given by | 
					
						
							|  |  |  | // their ids are able to interact with this particular end user due to | 
					
						
							|  |  |  | // being blocked or other application-specific logic. | 
					
						
							|  |  |  | // | 
					
						
							|  |  |  | // If an error is returned, it is passed back to the caller of | 
					
						
							|  |  |  | // PostInbox. | 
					
						
							|  |  |  | // | 
					
						
							|  |  |  | // If no error is returned, but authentication or authorization fails, | 
					
						
							|  |  |  | // then blocked must be true and error nil. An http.StatusForbidden | 
					
						
							|  |  |  | // will be written in the wresponse. | 
					
						
							|  |  |  | // | 
					
						
							|  |  |  | // Finally, if the authentication and authorization succeeds, then | 
					
						
							|  |  |  | // blocked must be false and error nil. The request will continue | 
					
						
							|  |  |  | // to be processed. | 
					
						
							| 
									
										
										
										
											2021-05-02 19:51:12 +02:00
										 |  |  | func (f *federatingProtocol) Blocked(ctx context.Context, actorIRIs []*url.URL) (bool, error) { | 
					
						
							| 
									
										
										
										
											2021-03-07 13:05:33 +01:00
										 |  |  | 	// TODO | 
					
						
							|  |  |  | 	return false, nil | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-04-20 18:14:23 +02:00
										 |  |  | // FederatingCallbacks returns the application logic that handles | 
					
						
							|  |  |  | // ActivityStreams received from federating peers. | 
					
						
							|  |  |  | // | 
					
						
							|  |  |  | // Note that certain types of callbacks will be 'wrapped' with default | 
					
						
							|  |  |  | // behaviors supported natively by the library. Other callbacks | 
					
						
							|  |  |  | // compatible with streams.TypeResolver can be specified by 'other'. | 
					
						
							|  |  |  | // | 
					
						
							|  |  |  | // For example, setting the 'Create' field in the | 
					
						
							|  |  |  | // FederatingWrappedCallbacks lets an application dependency inject | 
					
						
							|  |  |  | // additional behaviors they want to take place, including the default | 
					
						
							|  |  |  | // behavior supplied by this library. This is guaranteed to be compliant | 
					
						
							|  |  |  | // with the ActivityPub Social protocol. | 
					
						
							|  |  |  | // | 
					
						
							|  |  |  | // To override the default behavior, instead supply the function in | 
					
						
							|  |  |  | // 'other', which does not guarantee the application will be compliant | 
					
						
							|  |  |  | // with the ActivityPub Social Protocol. | 
					
						
							|  |  |  | // | 
					
						
							|  |  |  | // Applications are not expected to handle every single ActivityStreams | 
					
						
							|  |  |  | // type and extension. The unhandled ones are passed to DefaultCallback. | 
					
						
							| 
									
										
										
										
											2021-05-02 19:51:12 +02:00
										 |  |  | func (f *federatingProtocol) FederatingCallbacks(ctx context.Context) (pub.FederatingWrappedCallbacks, []interface{}, error) { | 
					
						
							| 
									
										
										
										
											2021-03-07 13:05:33 +01:00
										 |  |  | 	// TODO | 
					
						
							|  |  |  | 	return pub.FederatingWrappedCallbacks{}, nil, nil | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-04-20 18:14:23 +02:00
										 |  |  | // DefaultCallback is called for types that go-fed can deserialize but | 
					
						
							|  |  |  | // are not handled by the application's callbacks returned in the | 
					
						
							|  |  |  | // Callbacks method. | 
					
						
							|  |  |  | // | 
					
						
							|  |  |  | // Applications are not expected to handle every single ActivityStreams | 
					
						
							|  |  |  | // type and extension, so the unhandled ones are passed to | 
					
						
							|  |  |  | // DefaultCallback. | 
					
						
							| 
									
										
										
										
											2021-05-02 19:51:12 +02:00
										 |  |  | func (f *federatingProtocol) DefaultCallback(ctx context.Context, activity pub.Activity) error { | 
					
						
							| 
									
										
										
										
											2021-04-24 18:15:08 +02:00
										 |  |  | 	l := f.log.WithFields(logrus.Fields{ | 
					
						
							|  |  |  | 		"func":   "DefaultCallback", | 
					
						
							|  |  |  | 		"aptype": activity.GetTypeName(), | 
					
						
							|  |  |  | 	}) | 
					
						
							|  |  |  | 	l.Debugf("received unhandle-able activity type so ignoring it") | 
					
						
							| 
									
										
										
										
											2021-03-07 13:05:33 +01:00
										 |  |  | 	return nil | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-04-20 18:14:23 +02:00
										 |  |  | // MaxInboxForwardingRecursionDepth determines how deep to search within | 
					
						
							|  |  |  | // an activity to determine if inbox forwarding needs to occur. | 
					
						
							|  |  |  | // | 
					
						
							|  |  |  | // Zero or negative numbers indicate infinite recursion. | 
					
						
							| 
									
										
										
										
											2021-05-02 19:51:12 +02:00
										 |  |  | func (f *federatingProtocol) MaxInboxForwardingRecursionDepth(ctx context.Context) int { | 
					
						
							| 
									
										
										
										
											2021-03-07 13:05:33 +01:00
										 |  |  | 	// TODO | 
					
						
							|  |  |  | 	return 0 | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-04-20 18:14:23 +02:00
										 |  |  | // MaxDeliveryRecursionDepth determines how deep to search within | 
					
						
							|  |  |  | // collections owned by peers when they are targeted to receive a | 
					
						
							|  |  |  | // delivery. | 
					
						
							|  |  |  | // | 
					
						
							|  |  |  | // Zero or negative numbers indicate infinite recursion. | 
					
						
							| 
									
										
										
										
											2021-05-02 19:51:12 +02:00
										 |  |  | func (f *federatingProtocol) MaxDeliveryRecursionDepth(ctx context.Context) int { | 
					
						
							| 
									
										
										
										
											2021-03-07 13:05:33 +01:00
										 |  |  | 	// TODO | 
					
						
							|  |  |  | 	return 0 | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-04-20 18:14:23 +02:00
										 |  |  | // FilterForwarding allows the implementation to apply business logic | 
					
						
							|  |  |  | // such as blocks, spam filtering, and so on to a list of potential | 
					
						
							|  |  |  | // Collections and OrderedCollections of recipients when inbox | 
					
						
							|  |  |  | // forwarding has been triggered. | 
					
						
							|  |  |  | // | 
					
						
							|  |  |  | // The activity is provided as a reference for more intelligent | 
					
						
							|  |  |  | // logic to be used, but the implementation must not modify it. | 
					
						
							| 
									
										
										
										
											2021-05-02 19:51:12 +02:00
										 |  |  | func (f *federatingProtocol) FilterForwarding(ctx context.Context, potentialRecipients []*url.URL, a pub.Activity) ([]*url.URL, error) { | 
					
						
							| 
									
										
										
										
											2021-03-07 13:05:33 +01:00
										 |  |  | 	// TODO | 
					
						
							|  |  |  | 	return nil, nil | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-04-20 18:14:23 +02:00
										 |  |  | // GetInbox returns the OrderedCollection inbox of the actor for this | 
					
						
							|  |  |  | // context. It is up to the implementation to provide the correct | 
					
						
							|  |  |  | // collection for the kind of authorization given in the request. | 
					
						
							|  |  |  | // | 
					
						
							|  |  |  | // AuthenticateGetInbox will be called prior to this. | 
					
						
							|  |  |  | // | 
					
						
							|  |  |  | // Always called, regardless whether the Federated Protocol or Social | 
					
						
							|  |  |  | // API is enabled. | 
					
						
							| 
									
										
										
										
											2021-05-02 19:51:12 +02:00
										 |  |  | func (f *federatingProtocol) GetInbox(ctx context.Context, r *http.Request) (vocab.ActivityStreamsOrderedCollectionPage, error) { | 
					
						
							| 
									
										
										
										
											2021-04-29 17:54:28 +02:00
										 |  |  | 	// IMPLEMENTATION NOTE: For GoToSocial, we serve outboxes and inboxes through | 
					
						
							|  |  |  | 	// the CLIENT API, not through the federation API, so we just do nothing here. | 
					
						
							| 
									
										
										
										
											2021-03-07 13:05:33 +01:00
										 |  |  | 	return nil, nil | 
					
						
							|  |  |  | } |