Version 5.0.0 beta 9

This commit is contained in:
Neo committed 2025-12-19 17:47:00 -08:00
1 parent 214f649f1d
commit 56979f8ee8
202 files changed
+4403 -1123

No files matched your search

@@ -141,19 +141,6 @@ class Comment extends ContentComment implements Embeddable,
return parent::url( $action )->setQueryString( 'tab', 'comments' );
}
/**
* Do stuff after creating (abstracted as comments and reviews need to do different things)
*
* @return void
*/
public function postCreate(): void
{
parent::postCreate();
$this->item()->asNode()->setLastComment( $this );
$this->item()->asNode()->save();
}
/**
* Reaction Type
*
@@ -733,6 +733,9 @@ Filter
if ( $this->canEdit( $member ) )
{
/* Remove the original edit element, this doesn't use the correct form */
unset( $menu->elements['edit'] );
$editLink = new ContentMenuLink( url: $this->url()->setQueryString( array( 'do' => 'editAlbum' ) ), languageString: Member::loggedIn()->language()->addToStack( 'edit_album'), id: 'edit_album' );
$editLink->opensDialog( 'edit_album' );
$menu->add( $editLink )->moveToStart( $editLink );
@@ -624,6 +624,12 @@ class Category extends Model implements Permissions
*/
protected function _setLastComment( Comment $comment=NULL, Item $updatedItem=NULL ) : void
{
/* This can happen if we comment directly on an album. */
if( !( $updatedItem instanceof Image ) )
{
return;
}
$this->setLastImage( $updatedItem );
}