This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Fix a bear check when the activity object is nil (
#14981
)
master
Takeshi Umeda
3 years ago
committed by
GitHub
parent
bb180921a3
commit
b4c4af18dc
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/lib/activitypub/activity.rb
+ 1
- 1
app/lib/activitypub/activity.rb
View File
@ -74,7 +74,7 @@ class ActivityPub::Activity
@object_uri
||
=
begin
str
=
value_or_id
(
@object
)
if
str
.
start_with?
(
'bear:'
)
if
str
&
.
start_with?
(
'bear:'
)
Addressable
::
URI
.
parse
(
str
)
.
query_values
[
'u'
]
else
str
Write
Preview
Loading…
Cancel
Save