Add Twitter API for the pinned statuses
authorEgor Kislitsyn <egor@kislitsyn.com>
Wed, 9 Jan 2019 12:54:19 +0000 (19:54 +0700)
committerEgor Kislitsyn <egor@kislitsyn.com>
Wed, 9 Jan 2019 12:54:19 +0000 (19:54 +0700)
commit44a1e6948488d9a96ed684f0a7855fe2fce02ed4
tree387d8fae2954f5674211d5ebf3e35b5336995a3a
parent1b06e6fdf3d879422d6cb0fe57cfcef223b54196
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
```
lib/pleroma/web/router.ex
lib/pleroma/web/twitter_api/representers/activity_representer.ex
lib/pleroma/web/twitter_api/twitter_api.ex
lib/pleroma/web/twitter_api/twitter_api_controller.ex
lib/pleroma/web/twitter_api/views/activity_view.ex
test/web/twitter_api/representers/activity_representer_test.exs
test/web/twitter_api/twitter_api_controller_test.exs
test/web/twitter_api/views/activity_view_test.exs