28 changed files with 520 additions and 177 deletions
@ -0,0 +1,11 @@ |
|||
defmodule Pleroma.Repo.Migrations.AddUnreadConversationCountToUserInfo do |
|||
use Ecto.Migration |
|||
|
|||
def up do |
|||
execute(""" |
|||
update users set info = jsonb_set(info, '{unread_conversation_count}', 0::varchar::jsonb, true) where local=true |
|||
""") |
|||
end |
|||
|
|||
def down, do: :ok |
|||
end |
@ -0,0 +1,43 @@ |
|||
{ |
|||
"type": "Announce", |
|||
"to": [ |
|||
"https://www.w3.org/ns/activitystreams#Public" |
|||
], |
|||
"published": "2018-02-17T19:39:15Z", |
|||
"object": { |
|||
"type": "Note", |
|||
"id": "https://mastodon.social/users/emelie/statuses/101849165031453404", |
|||
"attributedTo": "https://mastodon.social/users/emelie", |
|||
"content": "this is a public toot", |
|||
"to": [ |
|||
"https://www.w3.org/ns/activitystreams#Public" |
|||
], |
|||
"cc": [ |
|||
"https://mastodon.social/users/emelie", |
|||
"https://mastodon.social/users/emelie/followers" |
|||
] |
|||
}, |
|||
"id": "http://mastodon.example.org/users/admin/statuses/99542391527669785/activity", |
|||
"cc": [ |
|||
"http://mastodon.example.org/users/admin", |
|||
"http://mastodon.example.org/users/admin/followers" |
|||
], |
|||
"atomUri": "http://mastodon.example.org/users/admin/statuses/99542391527669785/activity", |
|||
"actor": "http://mastodon.example.org/users/admin", |
|||
"@context": [ |
|||
"https://www.w3.org/ns/activitystreams", |
|||
"https://w3id.org/security/v1", |
|||
{ |
|||
"toot": "http://joinmastodon.org/ns#", |
|||
"sensitive": "as:sensitive", |
|||
"ostatus": "http://ostatus.org#", |
|||
"movedTo": "as:movedTo", |
|||
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers", |
|||
"inReplyToAtomUri": "ostatus:inReplyToAtomUri", |
|||
"conversation": "ostatus:conversation", |
|||
"atomUri": "ostatus:atomUri", |
|||
"Hashtag": "as:Hashtag", |
|||
"Emoji": "toot:Emoji" |
|||
} |
|||
] |
|||
} |
@ -0,0 +1,35 @@ |
|||
{ |
|||
"type": "Announce", |
|||
"to": [ |
|||
"http://mastodon.example.org/users/admin/followers" |
|||
], |
|||
"published": "2018-02-17T19:39:15Z", |
|||
"object": { |
|||
"type": "Note", |
|||
"id": "http://mastodon.example.org/@admin/99541947525187368", |
|||
"attributedTo": "http://mastodon.example.org/users/admin", |
|||
"content": "this is a private toot", |
|||
"to": [ |
|||
"http://mastodon.example.org/users/admin/followers" |
|||
] |
|||
}, |
|||
"id": "http://mastodon.example.org/users/admin/statuses/99542391527669785/activity", |
|||
"atomUri": "http://mastodon.example.org/users/admin/statuses/99542391527669785/activity", |
|||
"actor": "http://mastodon.example.org/users/admin", |
|||
"@context": [ |
|||
"https://www.w3.org/ns/activitystreams", |
|||
"https://w3id.org/security/v1", |
|||
{ |
|||
"toot": "http://joinmastodon.org/ns#", |
|||
"sensitive": "as:sensitive", |
|||
"ostatus": "http://ostatus.org#", |
|||
"movedTo": "as:movedTo", |
|||
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers", |
|||
"inReplyToAtomUri": "ostatus:inReplyToAtomUri", |
|||
"conversation": "ostatus:conversation", |
|||
"atomUri": "ostatus:atomUri", |
|||
"Hashtag": "as:Hashtag", |
|||
"Emoji": "toot:Emoji" |
|||
} |
|||
] |
|||
} |
Loading…
Reference in new issue