This website works better with JavaScript.
Home
Explore
Help
Sign In
nekobus
/
mastodon_neko
forked from
closed-social/mastodon
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Parse OStatus tag URIs in ActivityPub handlers when those are local (
#4631
)
master
Eugen Rochko
7 years ago
committed by
GitHub
parent
2edfdab6e6
commit
c7d2619ab1
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
app/lib/activitypub/tag_manager.rb
+ 2
- 0
app/lib/activitypub/tag_manager.rb
View File
@ -90,6 +90,8 @@ class ActivityPub::TagManager
else
klass
.
find_by
(
id
:
uri_to_local_id
(
uri
)
)
end
elsif
::
TagManager
.
instance
.
local_id?
(
uri
)
klass
.
find_by
(
id
:
::
TagManager
.
instance
.
unique_tag_to_local_id
(
uri
,
klass
.
to_s
)
)
else
klass
.
find_by
(
uri
:
uri
)
end
Write
Preview
Loading…
Cancel
Save