diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2019-01-09 19:54:19 +0700 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2019-01-09 19:54:19 +0700 |
commit | 44a1e6948488d9a96ed684f0a7855fe2fce02ed4 (patch) | |
tree | 387d8fae2954f5674211d5ebf3e35b5336995a3a /test/web/twitter_api/representers | |
parent | 1b06e6fdf3d879422d6cb0fe57cfcef223b54196 (diff) | |
download | pleroma-44a1e6948488d9a96ed684f0a7855fe2fce02ed4.tar.gz pleroma-44a1e6948488d9a96ed684f0a7855fe2fce02ed4.zip |
Add Twitter API for the pinned statuses
```
# Only return statuses that have been pinned
GET /api/statuses/user_timeline.json?pinned=true
# Pin
POST /api/statuses/pin/:id
# Unpin
POST /api/statuses/unpin/:id
```
Diffstat (limited to 'test/web/twitter_api/representers')
-rw-r--r-- | test/web/twitter_api/representers/activity_representer_test.exs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/web/twitter_api/representers/activity_representer_test.exs b/test/web/twitter_api/representers/activity_representer_test.exs index 2ac32aeb2..a4f97e0f2 100644 --- a/test/web/twitter_api/representers/activity_representer_test.exs +++ b/test/web/twitter_api/representers/activity_representer_test.exs @@ -1,5 +1,5 @@ # Pleroma: A lightweight social networking server -# Copyright © 2017-2018 Pleroma Authors <https://pleroma.social/> +# Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/> # SPDX-License-Identifier: AGPL-3.0-only defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenterTest do @@ -157,6 +157,7 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenterTest do "repeat_num" => 3, "favorited" => false, "repeated" => false, + "pinned" => false, "external_url" => "some url", "tags" => ["nsfw", "content", "mentioning"], "activity_type" => "post", |