Add emoji to statuses

This commit is contained in:
2024-03-24 17:24:48 +11:00
parent adb84e0d73
commit 2b1363294b
11 changed files with 99 additions and 21 deletions

View File

@@ -7,26 +7,28 @@ RSpec.describe "Webmention creation", :db, :requests do
context "reply" do
let(:reply_json) {
{
type: "entry",
author: {
type: "card",
name: "nitza",
photo: "",
url: "https://micro.blog/nitza"
},
url: "https://micro.blog/nitza/20554783",
published: "2023-07-05T09:44:41+00:00",
"wm-received": "2023-07-05T09:44:48Z",
"wm-id": 1692950,
"wm-source": "https://micro.blog/nitza/20554783",
"wm-target": "https://dnitza.com/post/#{post_record.slug}",
content: {
html: "<p><a href=\"https://micro.blog/example\">@example</a> hah! I thought the same thing — but this is the most affordable thing that Teenage Engineering makes 😅</p>",
text: "@example hah! I thought the same thing — but this is the most affordable thing that Teenage Engineering makes 😅"
},
"in-reply-to": "https://dnitza.com/post/#{post_record.slug}",
"wm-property": "in-reply-to",
"wm-private": false
post: {
type: "entry",
author: {
type: "card",
name: "nitza",
photo: "",
url: "https://micro.blog/nitza"
},
url: "https://micro.blog/nitza/20554783",
published: "2023-07-05T09:44:41+00:00",
"wm-received": "2023-07-05T09:44:48Z",
"wm-id": 1692950,
"wm-source": "https://micro.blog/nitza/20554783",
"wm-target": "https://dnitza.com/post/#{post_record.slug}",
content: {
html: "<p><a href=\"https://micro.blog/example\">@example</a> hah! I thought the same thing — but this is the most affordable thing that Teenage Engineering makes 😅</p>",
text: "@example hah! I thought the same thing — but this is the most affordable thing that Teenage Engineering makes 😅"
},
"in-reply-to": "https://dnitza.com/post/#{post_record.slug}",
"wm-property": "in-reply-to",
"wm-private": false
}
}
}

View File

@@ -21,7 +21,8 @@ RSpec.describe Adamantium::Syndication::Mastodon do
syndicate_to: [],
photos: [],
location: nil,
in_reply_to: nil
in_reply_to: nil,
emoji: nil
)
}