mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 14:22:26 -05:00
[chore] de-interface{} the federator and dereferencer structs (#2285)
* de-interface{} the federator and dereferencer structs
* fix broken type signatures
This commit is contained in:
parent
3dcc94940d
commit
69ba9a79a1
55 changed files with 151 additions and 199 deletions
|
|
@ -26,12 +26,12 @@ import (
|
|||
)
|
||||
|
||||
// CheckGone checks if a tombstone exists in the database for AP Actor or Object with the given uri.
|
||||
func (f *federator) CheckGone(ctx context.Context, uri *url.URL) (bool, error) {
|
||||
func (f *Federator) CheckGone(ctx context.Context, uri *url.URL) (bool, error) {
|
||||
return f.db.TombstoneExistsWithURI(ctx, uri.String())
|
||||
}
|
||||
|
||||
// HandleGone puts a tombstone in the database, which marks an AP Actor or Object with the given uri as gone.
|
||||
func (f *federator) HandleGone(ctx context.Context, uri *url.URL) error {
|
||||
func (f *Federator) HandleGone(ctx context.Context, uri *url.URL) error {
|
||||
tombstone := >smodel.Tombstone{
|
||||
ID: id.NewULID(),
|
||||
Domain: uri.Host,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue