MastoAPI StatusView: Add locality indicator.
This commit is contained in:
parent
8e6b850610
commit
4811eefa6e
|
@ -13,3 +13,9 @@ Some apps operate under the assumption that no more than 4 attachments can be re
|
||||||
## Timelines
|
## Timelines
|
||||||
|
|
||||||
Adding the parameter `with_muted=true` to the timeline queries will also return activities by muted (not by blocked!) users.
|
Adding the parameter `with_muted=true` to the timeline queries will also return activities by muted (not by blocked!) users.
|
||||||
|
|
||||||
|
## Statuses
|
||||||
|
|
||||||
|
Has these additional fields under the 'pleroma' object:
|
||||||
|
|
||||||
|
- `local`: true if the post was made on the local instance.
|
||||||
|
|
|
@ -102,7 +102,10 @@ def render(
|
||||||
website: nil
|
website: nil
|
||||||
},
|
},
|
||||||
language: nil,
|
language: nil,
|
||||||
emojis: []
|
emojis: [],
|
||||||
|
pleroma: %{
|
||||||
|
local: activity.local
|
||||||
|
}
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -181,7 +184,10 @@ def render("status.json", %{activity: %{data: %{"object" => object}} = activity}
|
||||||
website: nil
|
website: nil
|
||||||
},
|
},
|
||||||
language: nil,
|
language: nil,
|
||||||
emojis: build_emojis(activity.data["object"]["emoji"])
|
emojis: build_emojis(activity.data["object"]["emoji"]),
|
||||||
|
pleroma: %{
|
||||||
|
local: activity.local
|
||||||
|
}
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -120,7 +120,10 @@ test "a note activity" do
|
||||||
static_url: "corndog.png",
|
static_url: "corndog.png",
|
||||||
visible_in_picker: false
|
visible_in_picker: false
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
pleroma: %{
|
||||||
|
local: true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
assert status == expected
|
assert status == expected
|
||||||
|
|
Loading…
Reference in New Issue