[PLUGIN][Reply] Separated replies from Note table.

[PLUGIN][Repeat] Deleted unnecessary card note template, info now to
appended at the end of note.
[PLUGIN][TreeNotes] WIP to accomodate reply plugin changes.
[TWIG][Runtime] Removed getAdditionalTemplateVars event.
This commit is contained in:
2021-11-07 01:32:06 +00:00
parent 7d8819a3da
commit f2f1bdc145
14 changed files with 291 additions and 232 deletions

View File

@@ -155,10 +155,10 @@ class Posting extends Component
* @throws ClientException
* @throws ServerException
*/
public static function storeLocalNote(Actor $actor, string $content, string $content_type, array $attachments, ?Note $reply_to = null, ?Note $repeat_of = null)
public static function storeLocalNote(Actor $actor, string $content, string $content_type, array $attachments)
{
$rendered = null;
Event::handle('RenderNoteContent', [$content, $content_type, &$rendered, $actor, $reply_to]);
Event::handle('RenderNoteContent', [$content, $content_type, &$rendered, $actor]);
$note = Note::create([
'actor_id' => $actor->getId(),
'content' => $content,
@@ -195,6 +195,8 @@ class Posting extends Component
}
DB::flush();
return $note;
}
public function onRenderNoteContent(string $content, string $content_type, ?string &$rendered, Actor $author, ?Note $reply_to = null)