[COMPONENT][Posting] Blog posts should be Articles by default

This commit is contained in:
2022-03-28 21:04:24 +01:00
parent 10f71e9fed
commit fa82306f6f
9 changed files with 41 additions and 40 deletions

View File

@@ -86,7 +86,7 @@ class Posting extends Component
* @throws DuplicateFoundException
* @throws ServerException
*/
public static function storeLocalPage(
public static function storeLocalArticle(
Actor $actor,
?string $content,
string $content_type,
@@ -117,7 +117,7 @@ class Posting extends Component
rendered: $rendered,
source: $source,
);
$note->setType('page');
$note->setType('article');
$note->setTitle($title);
if ($flush_and_notify) {
@@ -127,7 +127,7 @@ class Posting extends Component
$actor,
$activity,
$effective_attentions,
_m('Actor {actor_id} created page {note_id}.', [
_m('Actor {actor_id} created article {note_id}.', [
'{actor_id}' => $actor->getId(),
'{note_id}' => $activity->getObjectId(),
]),