mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-12-23 10:42:12 +00:00
update outdated comment
This commit is contained in:
parent
9db58dfd57
commit
e811d03cc9
|
@ -47,12 +47,11 @@ func instanceAccount(account *gtsmodel.Account) bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetRemoteAccount completely dereferences a remote account, converts it to a GtS model account,
|
// GetRemoteAccount completely dereferences a remote account, converts it to a GtS model account,
|
||||||
// puts it in the database, and returns it to a caller. The boolean indicates whether the account is new
|
// puts it in the database, and returns it to a caller.
|
||||||
// to us or not. If we haven't seen the account before, bool will be true. If we have seen the account before,
|
|
||||||
// it will be false.
|
|
||||||
//
|
//
|
||||||
// Refresh indicates whether--if the account exists in our db already--it should be refreshed by calling
|
// Refresh indicates whether--if the account exists in our db already--it should be refreshed by calling
|
||||||
// the remote instance again.
|
// the remote instance again. Blocking indicates whether the function should block until processing of
|
||||||
|
// the fetched account is complete.
|
||||||
//
|
//
|
||||||
// SIDE EFFECTS: remote account will be stored in the database, or updated if it already exists (and refresh is true).
|
// SIDE EFFECTS: remote account will be stored in the database, or updated if it already exists (and refresh is true).
|
||||||
func (d *deref) GetRemoteAccount(ctx context.Context, username string, remoteAccountID *url.URL, blocking bool, refresh bool) (*gtsmodel.Account, error) {
|
func (d *deref) GetRemoteAccount(ctx context.Context, username string, remoteAccountID *url.URL, blocking bool, refresh bool) (*gtsmodel.Account, error) {
|
||||||
|
|
Loading…
Reference in a new issue