Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Register
Sign in
Toggle navigation
Menu
Open sidebar
Tiger Ton
mastodon
Commits
aeccbb2a
Commit
aeccbb2a
authored
3 years ago
by
Claire
Browse files
Options
Download
Email Patches
Plain Diff
Fix spurious errors when receiving an Add activity for a private post
parent
b99c58b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/lib/activitypub/activity/add.rb
+1
-1
app/lib/activitypub/activity/add.rb
with
1 addition
and
1 deletion
+1
-1
app/lib/activitypub/activity/add.rb
+
1
-
1
View file @
aeccbb2a
...
...
@@ -7,7 +7,7 @@ class ActivityPub::Activity::Add < ActivityPub::Activity
status
=
status_from_uri
(
object_uri
)
status
||=
fetch_remote_original_status
return
unless
!
status
.
nil?
&&
status
.
account_id
==
@account
.
id
&&
!
@account
.
pinned?
(
status
)
return
unless
!
status
.
nil?
&&
status
.
account_id
==
@account
.
id
&&
!
@account
.
pinned?
(
status
)
&&
status
.
distributable?
StatusPin
.
create!
(
account:
@account
,
status:
status
)
end
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets