... | ... | @@ -158,7 +158,7 @@ In module `Pleroma.Bots.Common` ([`bots_common.ex`](https://git.pleroma.social/a |
|
|
bot_post_status(orig_msg,status_details)
|
|
|
```
|
|
|
|
|
|
Module Pleroma.Bots.Activity ([`bots_activity.ex`](https://git.pleroma.social/andarna/pleroma/blob/develop/lib/pleroma/bots/bots_activity.ex)) contains functions to get certain field from an ActivityPub message. Most of the names are self-explanitary:
|
|
|
Module `Pleroma.Bots.Activity` ([`bots_activity.ex`](https://git.pleroma.social/andarna/pleroma/blob/develop/lib/pleroma/bots/bots_activity.ex)) contains functions to get certain field from an ActivityPub message. Most of the names are self-explanitary:
|
|
|
- _nickname_ is the name of the bot
|
|
|
- _content_ is the actual textual content of the ActivityPub message posted to the bot
|
|
|
- _attachments_ is the attachment part of the ActivityPub message posted to the bot (in the format described above).
|
... | ... | @@ -183,7 +183,7 @@ The _object_ refers to the internal ActivityPub object inside a message; _conte |
|
|
get_sender(activity)
|
|
|
```
|
|
|
|
|
|
Module Pleroma.Bots.Parser ([`bots_parser.ex`](https://git.pleroma.social/andarna/pleroma/blob/develop/lib/pleroma/bots/bots_parser.ex)) provides convenience functions for parsing the incoming message.
|
|
|
Module `Pleroma.Bots.Parser` ([`bots_parser.ex`](https://git.pleroma.social/andarna/pleroma/blob/develop/lib/pleroma/bots/bots_parser.ex)) provides convenience functions for parsing the incoming message.
|
|
|
|
|
|
```elixir
|
|
|
strip_tags(msg)
|
... | ... | |