mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-27 03:46:22 +00:00
fix: soportar flags
This commit is contained in:
parent
163f3fa737
commit
4bef309621
1 changed files with 1 additions and 0 deletions
|
@ -91,6 +91,7 @@ module Api
|
||||||
def object_uri
|
def object_uri
|
||||||
@object_uri ||=
|
@object_uri ||=
|
||||||
case original_activity[:object]
|
case original_activity[:object]
|
||||||
|
when Array then original_activity[:object].first
|
||||||
when String then original_activity[:object]
|
when String then original_activity[:object]
|
||||||
when Hash then original_activity.dig(:object, :id)
|
when Hash then original_activity.dig(:object, :id)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue