mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-06 02:33:22 -06:00
[chore] status dereferencing improvements (#3255)
* search for mentions also by username,domain in status deref, handle deleted statuses in enrichStatusSafely() * return d.enrichStatusSafely() directly
This commit is contained in:
parent
540edef0c2
commit
3254ef1923
4 changed files with 113 additions and 63 deletions
|
|
@ -237,7 +237,7 @@ func (d *Dereferencer) DereferenceStatusDescendants(ctx context.Context, usernam
|
|||
|
||||
// Keep track of already dereferenced collection
|
||||
// pages for this thread to prevent recursion.
|
||||
derefdPages := make(map[string]struct{}, 10)
|
||||
derefdPages := make(map[string]struct{}, 16)
|
||||
|
||||
// frame represents a single stack frame when
|
||||
// iteratively derefencing status descendants.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue