mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-30 02:46:14 -06:00
specifically allowed updated to be equal to published
This commit is contained in:
parent
a66f3e2f89
commit
be69a0ece9
1 changed files with 1 additions and 1 deletions
|
|
@ -364,7 +364,7 @@ func (c *Converter) ASStatusToStatus(ctx context.Context, statusable ap.Statusab
|
||||||
// status.Updated
|
// status.Updated
|
||||||
//
|
//
|
||||||
// Extract and validate update time for status. Defaults to published.
|
// Extract and validate update time for status. Defaults to published.
|
||||||
if upd := ap.GetUpdated(statusable); upd.After(status.CreatedAt) {
|
if upd := ap.GetUpdated(statusable); !upd.Before(status.CreatedAt) {
|
||||||
status.UpdatedAt = upd
|
status.UpdatedAt = upd
|
||||||
} else if upd.IsZero() {
|
} else if upd.IsZero() {
|
||||||
status.UpdatedAt = status.CreatedAt
|
status.UpdatedAt = status.CreatedAt
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue