| 1 | module Plugin::Mastodon |
| 2 | # https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md#mention |
| 3 | class Mention < Diva::Model |
| 4 | #register :mastodon_mention, name: "Mastodonメンション(Mastodon)" |
| 5 | |
| 6 | field.uri :url, required: true |
| 7 | field.string :username, required: true |
| 8 | field.string :acct, required: true |
| 9 | field.string :id, required: true |
| 10 | |
| 11 | def inspect |
| 12 | "mastodon-mention(#{acct})" |
| 13 | end |
| 14 | end |
| 15 | end |