mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-30 00:36:14 -06:00
and some more
This commit is contained in:
parent
81ea286254
commit
896461dec3
16 changed files with 145 additions and 95 deletions
|
|
@ -66,8 +66,8 @@ func (d *deref) GetRemoteStatus(username string, remoteStatusID *url.URL, refres
|
|||
new := true
|
||||
|
||||
// check if we already have the status in our db
|
||||
maybeStatus := >smodel.Status{}
|
||||
if err := d.db.GetWhere([]db.Where{{Key: "uri", Value: remoteStatusID.String()}}, maybeStatus); err == nil {
|
||||
maybeStatus, err := d.db.GetStatusByURI(remoteStatusID.String())
|
||||
if err == nil {
|
||||
// we've seen this status before so it's not new
|
||||
new = false
|
||||
|
||||
|
|
@ -339,7 +339,7 @@ func (d *deref) populateStatusFields(status *gtsmodel.Status, requestingUsername
|
|||
|
||||
m.StatusID = status.ID
|
||||
m.Status = status
|
||||
|
||||
|
||||
m.OriginAccountID = status.Account.ID
|
||||
m.OriginAccount = status.Account
|
||||
m.OriginAccountURI = status.Account.URI
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue