mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-29 22:26:15 -06: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.FetchedAt = time.Now()
|
||||||
latestStatus.Local = status.Local
|
latestStatus.Local = status.Local
|
||||||
latestStatus.PinnedAt = status.PinnedAt
|
latestStatus.PinnedAt = status.PinnedAt
|
||||||
latestStatus.EditIDs = status.EditIDs
|
|
||||||
latestStatus.Edits = status.Edits
|
|
||||||
|
|
||||||
// Carry-over approvals. Remote instances might not yet
|
// Carry-over approvals. Remote instances might not yet
|
||||||
// serve statuses with the `approved_by` field, but we
|
// serve statuses with the `approved_by` field, but we
|
||||||
|
|
@ -1143,6 +1141,10 @@ func (d *Dereferencer) handleStatusEdit(
|
||||||
) {
|
) {
|
||||||
var edited bool
|
var edited bool
|
||||||
|
|
||||||
|
// Copy previous status edit columns.
|
||||||
|
status.EditIDs = existing.EditIDs
|
||||||
|
status.Edits = existing.Edits
|
||||||
|
|
||||||
// Preallocate max slice length.
|
// Preallocate max slice length.
|
||||||
cols = make([]string, 1, 13)
|
cols = make([]string, 1, 13)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue