Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
flear-site
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FLEAR
flear-site
Commits
aae4e1ed
Verified
Commit
aae4e1ed
authored
1 year ago
by
Jeffrey Phillips Freeman
Browse files
Options
Downloads
Patches
Plain Diff
Fixed a problem with sending prematurely ending
parent
9275e06c
No related branches found
No related tags found
No related merge requests found
Pipeline
#1936
passed with stage
Stage:
in 1 minute and 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
api/activitypub/sendNote.ts
+3
-3
3 additions, 3 deletions
api/activitypub/sendNote.ts
with
3 additions
and
3 deletions
api/activitypub/sendNote.ts
+
3
−
3
View file @
aae4e1ed
...
...
@@ -66,7 +66,7 @@ export default async function (req: VercelRequest, res: VercelResponse) {
const
followersCollection
=
db
.
collection
(
'
followers
'
);
const
followersQuerySnapshot
=
await
followersCollection
.
get
();
let
lastSuccessfulSent
Id
=
""
;
let
sending
Id
s
=
Set
()
;
for
(
const
followerDoc
of
followersQuerySnapshot
.
docs
)
{
const
follower
=
followerDoc
.
data
();
...
...
@@ -96,7 +96,7 @@ export default async function (req: VercelRequest, res: VercelResponse) {
const
response
=
await
sendSignedRequest
(
actorInbox
,
<
AP
.
Activity
>
item
);
console
.
log
(
`Send result:
${
actorInbox
}
`
,
response
.
status
,
response
.
statusText
,
await
response
.
text
());
sen
t
Ids
.
push
(
item
.
id
)
sen
ding
Ids
.
push
(
item
.
id
)
}
}
}
catch
(
ex
)
{
...
...
@@ -105,7 +105,7 @@ export default async function (req: VercelRequest, res: VercelResponse) {
}
configRef
.
set
({
"
sentIds
"
:
sentIds
,
"
sentIds
"
:
sentIds
.
concat
(
sendingIds
)
,
"
lastEpoch
"
:
new
Date
().
getTime
()
});
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment