mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 06:42:25 -05:00
[feature] add support for polls + receiving federated status edits (#2330)
This commit is contained in:
parent
7204ccedc3
commit
e9e5dc5a40
84 changed files with 3992 additions and 570 deletions
|
|
@ -85,7 +85,7 @@ func (s *surface) timelineAndNotifyStatusForFollowers(
|
|||
follows []*gtsmodel.Follow,
|
||||
) error {
|
||||
var (
|
||||
errs = new(gtserror.MultiError)
|
||||
errs gtserror.MultiError
|
||||
boost = status.BoostOfID != ""
|
||||
reply = status.InReplyToURI != ""
|
||||
)
|
||||
|
|
@ -117,7 +117,7 @@ func (s *surface) timelineAndNotifyStatusForFollowers(
|
|||
ctx,
|
||||
status,
|
||||
follow,
|
||||
errs,
|
||||
&errs,
|
||||
)
|
||||
|
||||
// Add status to home timeline for owner
|
||||
|
|
@ -160,11 +160,10 @@ func (s *surface) timelineAndNotifyStatusForFollowers(
|
|||
// - This is a top-level post (not a reply or boost).
|
||||
//
|
||||
// That means we can officially notify this one.
|
||||
if err := s.notify(
|
||||
ctx,
|
||||
if err := s.notify(ctx,
|
||||
gtsmodel.NotificationStatus,
|
||||
follow.AccountID,
|
||||
status.AccountID,
|
||||
follow.Account,
|
||||
status.Account,
|
||||
status.ID,
|
||||
); err != nil {
|
||||
errs.Appendf("error notifying account %s about new status: %w", follow.AccountID, err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue