Hi,
In Joomla! 3.10 the ActivityTable::isBookmarked() function does not work properly. Always returns FALSE. I didn't notice this problem in J4.
A more detailed analysis of the problem (in J3) allowed us to determine that the problem is the use of the
?? operator
Code:
public function isBookmarked(): bool
{
return ( $this->getBool( '_bookmarked' ) ?? \in_array( $this->getId(), BookmarkHelper::getBookmarks() ) );
}
Since
Code:
$this->getBool( '_bookmarked' )
always returns FALSE and not NULL, the value returned by
Code:
in_array( $this->getId(), BookmarkHelper::getBookmarks() )
has no practical significance.
As a result, you cannot delete a specific bookmark because a submenu item for this action never appears.
The same problem occurs with ActivityTable::isFollowing().
I haven't looked into it further, so perhaps I don't fully understand the intent of this solution.
However, the error is real.
Regards,[/code]