mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-05 06:43:17 -06:00
tweak
This commit is contained in:
parent
9e3f19c0a1
commit
0c92ae1367
1 changed files with 3 additions and 3 deletions
|
|
@ -162,7 +162,7 @@ func (d *Dereferencer) isPermittedReply(
|
|||
// borrow fields from the up-thread rejection.
|
||||
// This collapses the chain beyond the first
|
||||
// rejected reply and allows us to avoid derefing
|
||||
// lots of statuses we already know we don't want.
|
||||
// further replies we already know we don't want.
|
||||
statusID := req.StatusID
|
||||
targetAccountID := req.TargetAccountID
|
||||
uri := strings.ReplaceAll(req.URI, req.ID, id)
|
||||
|
|
@ -172,7 +172,7 @@ func (d *Dereferencer) isPermittedReply(
|
|||
StatusID: statusID,
|
||||
TargetAccountID: targetAccountID,
|
||||
InteractingAccountID: status.AccountID,
|
||||
InteractionURI: status.URI,
|
||||
InteractionURI: statusURI,
|
||||
InteractionType: gtsmodel.InteractionReply,
|
||||
URI: uri,
|
||||
RejectedAt: time.Now(),
|
||||
|
|
@ -246,7 +246,7 @@ func (d *Dereferencer) isPermittedReply(
|
|||
StatusID: inReplyTo.ID,
|
||||
TargetAccountID: inReplyTo.AccountID,
|
||||
InteractingAccountID: status.AccountID,
|
||||
InteractionURI: status.URI,
|
||||
InteractionURI: statusURI,
|
||||
InteractionType: gtsmodel.InteractionReply,
|
||||
URI: uris.GenerateURIForReject(inReplyTo.Account.Username, id),
|
||||
RejectedAt: time.Now(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue