2018-03-06 04:51:42 +00:00
|
|
|
import times from 'lodash/times'
|
2018-03-06 04:29:49 +00:00
|
|
|
|
|
|
|
export const actions = times(30, i => ({
|
|
|
|
post: {
|
2018-03-06 04:51:42 +00:00
|
|
|
text: '' + (i + 1)
|
2018-03-06 04:29:49 +00:00
|
|
|
},
|
|
|
|
user: 'admin'
|
|
|
|
})).concat([
|
|
|
|
{
|
|
|
|
user: 'foobar',
|
|
|
|
post: {
|
|
|
|
text: 'hello world'
|
|
|
|
}
|
|
|
|
},
|
2018-03-06 06:36:54 +00:00
|
|
|
{
|
|
|
|
user: 'admin',
|
|
|
|
follow: 'foobar'
|
|
|
|
},
|
2018-03-06 05:58:29 +00:00
|
|
|
{
|
|
|
|
user: 'admin',
|
|
|
|
post: {
|
|
|
|
text: '@foobar hello foobar',
|
|
|
|
privacy: 'unlisted'
|
|
|
|
}
|
|
|
|
},
|
2018-03-06 06:36:54 +00:00
|
|
|
{
|
|
|
|
user: 'quux',
|
|
|
|
follow: 'foobar'
|
|
|
|
},
|
2018-03-06 05:58:29 +00:00
|
|
|
{
|
|
|
|
user: 'foobar',
|
|
|
|
post: {
|
|
|
|
text: '@admin hello admin',
|
|
|
|
privacy: 'unlisted'
|
|
|
|
}
|
|
|
|
},
|
2018-03-06 04:29:49 +00:00
|
|
|
{
|
|
|
|
user: 'foobar',
|
|
|
|
post: {
|
|
|
|
text: "here's a kitten",
|
|
|
|
media: ['kitten1.jpg']
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
user: 'foobar',
|
|
|
|
post: {
|
|
|
|
text: "here's a secret kitten",
|
|
|
|
media: ['kitten2.jpg'],
|
|
|
|
sensitive: true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
user: 'foobar',
|
|
|
|
post: {
|
|
|
|
text: "here's 2 kitten photos",
|
|
|
|
media: ['kitten3.jpg', 'kitten4.jpg']
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
user: 'foobar',
|
|
|
|
post: {
|
|
|
|
text: "here's an animated kitten gif",
|
|
|
|
media: ['kitten1.gif']
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
user: 'foobar',
|
|
|
|
post: {
|
|
|
|
text: "here's a secret animated kitten gif",
|
|
|
|
media: ['kitten2.gif'],
|
|
|
|
sensitive: true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
user: 'foobar',
|
|
|
|
post: {
|
2018-03-06 07:56:48 +00:00
|
|
|
text: 'content warning',
|
2018-03-06 04:29:49 +00:00
|
|
|
spoiler: 'CW'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
user: 'foobar',
|
|
|
|
post: {
|
|
|
|
text: "here's a video",
|
|
|
|
media: ['kitten1.mp4']
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
user: 'foobar',
|
|
|
|
post: {
|
|
|
|
text: "here's a secret video",
|
2018-03-06 17:03:59 +00:00
|
|
|
media: ['kitten2.mp4'],
|
|
|
|
sensitive: true
|
2018-03-06 04:29:49 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
user: 'foobar',
|
|
|
|
post: {
|
|
|
|
text: "here's a kitten with a CW",
|
|
|
|
media: ['kitten5.jpg'],
|
|
|
|
sensitive: true,
|
|
|
|
spoiler: 'kitten CW'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2018-03-06 06:36:54 +00:00
|
|
|
user: 'foobar',
|
2018-03-06 04:29:49 +00:00
|
|
|
post: {
|
2018-03-06 17:03:59 +00:00
|
|
|
internalId: 'foobar-direct',
|
2018-03-06 06:36:54 +00:00
|
|
|
text: 'direct',
|
2018-03-06 05:58:29 +00:00
|
|
|
privacy: 'direct'
|
2018-03-06 04:29:49 +00:00
|
|
|
}
|
|
|
|
},
|
2018-03-06 04:51:42 +00:00
|
|
|
{
|
|
|
|
user: 'foobar',
|
2018-03-06 05:21:28 +00:00
|
|
|
post: {
|
2018-03-06 17:03:59 +00:00
|
|
|
internalId: 'foobar-this-is-followers-only',
|
2018-03-06 05:21:28 +00:00
|
|
|
text: 'this is followers-only',
|
|
|
|
privacy: 'private'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
user: 'foobar',
|
|
|
|
post: {
|
2018-03-06 17:03:59 +00:00
|
|
|
internalId: 'foobar-this-is-unlisted',
|
2018-03-06 05:21:28 +00:00
|
|
|
text: 'this is unlisted',
|
|
|
|
privacy: 'unlisted'
|
|
|
|
}
|
2018-03-06 04:51:42 +00:00
|
|
|
},
|
2018-03-06 06:36:54 +00:00
|
|
|
{
|
|
|
|
user: 'admin',
|
|
|
|
follow: 'quux'
|
|
|
|
},
|
2018-03-06 04:29:49 +00:00
|
|
|
{
|
|
|
|
user: 'admin',
|
|
|
|
post: {
|
2018-03-06 17:03:59 +00:00
|
|
|
internalId: 'notification-of-direct-message',
|
2018-03-06 04:29:49 +00:00
|
|
|
text: '@foobar notification of direct message',
|
|
|
|
privacy: 'direct'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
user: 'admin',
|
2018-03-06 17:03:59 +00:00
|
|
|
favorite: 'notification-of-direct-message'
|
2018-03-06 04:29:49 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
user: 'admin',
|
|
|
|
post: {
|
2018-03-06 17:03:59 +00:00
|
|
|
internalId: 'notification-of-followers-only',
|
2018-03-06 04:29:49 +00:00
|
|
|
text: '@foobar notification of followers-only message',
|
|
|
|
privacy: 'private'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
user: 'admin',
|
2018-03-06 17:03:59 +00:00
|
|
|
favorite: 'notification-of-followers-only'
|
2018-03-06 04:29:49 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
user: 'admin',
|
|
|
|
post: {
|
2018-03-06 17:03:59 +00:00
|
|
|
internalId: 'notification-of-unlisted-message',
|
2018-03-06 04:29:49 +00:00
|
|
|
text: '@foobar notification of unlisted message',
|
|
|
|
privacy: 'unlisted'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
user: 'admin',
|
2018-03-06 17:03:59 +00:00
|
|
|
boost: 'notification-of-unlisted-message'
|
2018-03-06 04:29:49 +00:00
|
|
|
},
|
2018-03-06 05:58:29 +00:00
|
|
|
{
|
|
|
|
user: 'admin',
|
2018-03-06 17:03:59 +00:00
|
|
|
boost: 'foobar-this-is-unlisted'
|
2018-03-06 05:58:29 +00:00
|
|
|
},
|
2018-03-06 04:29:49 +00:00
|
|
|
{
|
|
|
|
user: 'admin',
|
2018-03-06 17:03:59 +00:00
|
|
|
favorite: 'foobar-this-is-unlisted'
|
2018-03-06 06:36:54 +00:00
|
|
|
}
|
|
|
|
]).concat(times(25, i => ({
|
|
|
|
user: 'quux',
|
|
|
|
post: {
|
2018-03-06 17:03:59 +00:00
|
|
|
internalId: `quux-thread-${i}`,
|
2018-03-06 06:36:54 +00:00
|
|
|
text: 'unlisted thread ' + (i + 1),
|
|
|
|
privacy: 'unlisted',
|
2018-03-06 17:03:59 +00:00
|
|
|
inReplyTo: i > 0 && `quux-thread-${i - 1}`
|
2018-03-06 06:36:54 +00:00
|
|
|
}
|
|
|
|
}))).concat([
|
2018-03-06 04:29:49 +00:00
|
|
|
{
|
|
|
|
user: 'quux',
|
|
|
|
post: {
|
2018-03-06 17:03:59 +00:00
|
|
|
internalId: 'pinned-toot-1',
|
2018-03-06 04:29:49 +00:00
|
|
|
text: 'pinned toot 1',
|
2018-03-06 05:58:29 +00:00
|
|
|
privacy: 'unlisted'
|
2018-03-06 04:29:49 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
user: 'quux',
|
|
|
|
post: {
|
2018-03-06 17:03:59 +00:00
|
|
|
internalId: 'pinned-toot-2',
|
2018-03-06 04:29:49 +00:00
|
|
|
text: 'pinned toot 2',
|
2018-03-06 05:58:29 +00:00
|
|
|
privacy: 'unlisted'
|
2018-03-06 04:29:49 +00:00
|
|
|
}
|
2018-03-06 06:36:54 +00:00
|
|
|
},
|
2018-03-06 04:29:49 +00:00
|
|
|
{
|
|
|
|
user: 'quux',
|
2018-03-06 17:03:59 +00:00
|
|
|
pin: 'pinned-toot-2'
|
2018-03-06 04:29:49 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
user: 'quux',
|
2018-03-06 17:03:59 +00:00
|
|
|
pin: 'pinned-toot-1'
|
2018-03-06 04:29:49 +00:00
|
|
|
},
|
2018-03-06 05:58:29 +00:00
|
|
|
{
|
|
|
|
user: 'admin',
|
2018-03-06 17:03:59 +00:00
|
|
|
boost: 'pinned-toot-1'
|
2018-03-06 05:58:29 +00:00
|
|
|
},
|
2018-03-06 04:29:49 +00:00
|
|
|
{
|
|
|
|
user: 'admin',
|
2018-03-06 17:03:59 +00:00
|
|
|
favorite: 'pinned-toot-1'
|
2018-03-06 04:29:49 +00:00
|
|
|
},
|
2018-03-06 06:36:54 +00:00
|
|
|
{
|
|
|
|
user: 'admin',
|
2018-03-06 17:03:59 +00:00
|
|
|
favorite: 'pinned-toot-2'
|
2018-03-06 06:36:54 +00:00
|
|
|
},
|
2018-03-06 04:29:49 +00:00
|
|
|
{
|
|
|
|
user: 'foobar',
|
2018-03-06 17:03:59 +00:00
|
|
|
favorite: 'pinned-toot-1'
|
2018-03-06 04:29:49 +00:00
|
|
|
},
|
|
|
|
{
|
2018-03-06 06:36:54 +00:00
|
|
|
user: 'foobar',
|
2018-03-06 17:03:59 +00:00
|
|
|
favorite: 'notification-of-unlisted-message'
|
2018-03-06 06:36:54 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
user: 'foobar',
|
2018-03-06 17:03:59 +00:00
|
|
|
favorite: 'notification-of-followers-only'
|
2018-03-06 06:36:54 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
user: 'foobar',
|
2018-03-06 17:03:59 +00:00
|
|
|
favorite: 'notification-of-direct-message'
|
2018-03-06 06:36:54 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
user: 'foobar',
|
2018-03-06 17:03:59 +00:00
|
|
|
pin: 'foobar-this-is-unlisted'
|
2018-03-06 04:29:49 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
user: 'ExternalLinks',
|
|
|
|
post: {
|
|
|
|
text: 'here are some hashtags: #kitten #kitties',
|
2018-03-06 05:58:29 +00:00
|
|
|
privacy: 'unlisted'
|
2018-03-06 04:29:49 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
user: 'ExternalLinks',
|
|
|
|
post: {
|
|
|
|
text: 'here are some external links: https://joinmastodon.org https://github.com/tootsuite/mastodon',
|
2018-03-06 05:58:29 +00:00
|
|
|
privacy: 'unlisted'
|
2018-03-06 04:29:49 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
user: 'ExternalLinks',
|
|
|
|
post: {
|
|
|
|
text: 'here are some users: @admin @quux',
|
2018-03-06 05:58:29 +00:00
|
|
|
privacy: 'unlisted'
|
2018-03-06 04:29:49 +00:00
|
|
|
}
|
|
|
|
}
|
2018-03-06 07:56:48 +00:00
|
|
|
])
|