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 punycode being returned in some entities instead of unicode in REST API (
#13035
)
master
Eugen Rochko
4 years ago
committed by
GitHub
parent
ff07e80533
commit
92e7c84969
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
2 changed files
with
5 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
app/serializers/rest/announcement_serializer.rb
+1
-1
app/serializers/rest/status_serializer.rb
+ 4
- 0
app/serializers/rest/announcement_serializer.rb
View File
@ -41,5 +41,9 @@ class REST::AnnouncementSerializer < ActiveModel::Serializer
def
url
ActivityPub
::
TagManager
.
instance
.
url_for
(
object
)
end
def
acct
object
.
pretty_acct
end
end
end
+ 1
- 1
app/serializers/rest/status_serializer.rb
View File
@ -145,7 +145,7 @@ class REST::StatusSerializer < ActiveModel::Serializer
end
def
acct
object
.
account_acct
object
.
account
.
pretty
_acct
end
end
Write
Preview
Loading…
Cancel
Save