include the mastodon summary in the post
This commit is contained in:
parent
6c55e44f4c
commit
7cec3f4dbf
@ -255,7 +255,7 @@ function get_atom_elements($feed, $item, &$author) {
|
|||||||
$author['author_is_feed'] = false;
|
$author['author_is_feed'] = false;
|
||||||
|
|
||||||
$rawauthor = $feed->get_feed_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'author');
|
$rawauthor = $feed->get_feed_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'author');
|
||||||
logger('rawauthor: ' . print_r($rawauthor, true));
|
//logger('rawauthor: ' . print_r($rawauthor, true));
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -519,7 +519,7 @@ function get_atom_elements($feed, $item, &$author) {
|
|||||||
|
|
||||||
// turn Mastodon content warning into a #nsfw hashtag
|
// turn Mastodon content warning into a #nsfw hashtag
|
||||||
if($mastodon && $summary) {
|
if($mastodon && $summary) {
|
||||||
$res['body'] .= "\n\n#ContentWarning\n";
|
$res['body'] = $summary . "\n\n" . $res['body'] . "\n\n#ContentWarning\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user