mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-04-12 04:14:08 +00:00
move status.EditID setting into handleStatusEdit()
This commit is contained in:
parent
d5e2611821
commit
d7cba23f6f
1 changed files with 4 additions and 2 deletions
|
@ -520,8 +520,6 @@ func (d *Dereferencer) enrichStatus(
|
|||
latestStatus.FetchedAt = time.Now()
|
||||
latestStatus.Local = status.Local
|
||||
latestStatus.PinnedAt = status.PinnedAt
|
||||
latestStatus.EditIDs = status.EditIDs
|
||||
latestStatus.Edits = status.Edits
|
||||
|
||||
// Carry-over approvals. Remote instances might not yet
|
||||
// serve statuses with the `approved_by` field, but we
|
||||
|
@ -1143,6 +1141,10 @@ func (d *Dereferencer) handleStatusEdit(
|
|||
) {
|
||||
var edited bool
|
||||
|
||||
// Copy previous status edit columns.
|
||||
status.EditIDs = existing.EditIDs
|
||||
status.Edits = existing.Edits
|
||||
|
||||
// Preallocate max slice length.
|
||||
cols = make([]string, 1, 13)
|
||||
|
||||
|
|
Loading…
Reference in a new issue