Managed to get a workable arrangement. Not as good as in my Feature Request (
https://stackideas.com/forums/fine-tune-handling-of-rss-generated-blogs) which would have dealt with other use cases in a structured way but works well.
STEP 1 /joomla/administrator/components/com_easyblog/themes/default/blogs/pending/default.php
Changed
<td class="center">
<div>
<a class="btn btn-primary btn-xs" href="javascript:void(0);" data-blog-accept data-id="<?php echo $post->uid;?>">
<?php echo JText::_('COM_EASYBLOG_APPROVE_BUTTON');?>
</a>
<a class="btn btn-danger btn-xs" href="javascript:void(0);" data-blog-reject data-id="<?php echo $post->uid;?>">
<?php echo JText::_('COM_EASYBLOG_REJECT_BUTTON');?>
</a>
</div>
</td>
To
<td class="center">
<div>
<a class="btn btn-primary btn-xs" href="javascript:void(0);" data-blog-accept data-id="<?php echo $post->uid;?>">
<?php echo JText::_('COM_EASYBLOG_APPROVE_BUTTON');?>
</a>
<a class="btn btn-warning btn-xs" href="javascript:void(0);" data-blog-reject data-id="<?php echo $post->uid;?>">
<?php echo JText::_('COM_EASYBLOG_REJECT_BUTTON');?>
</a>
<a class="btn btn-danger btn-xs" href="javascript:void(0);" data-blog-remove data-id="<?php echo $post->uid;?>">
<?php echo JText::_('COM_EASYBLOG_DELETE_BUTTON');?>
</a>
</div>
</td>
STEP 2 /joomla/administrator/components/com_easyblog/themes/default/blogs/pending/default.js
Changed
$('[data-blog-reject]').on('click', function(event) {
event.stopPropagation();
var id = $(this).data('id');
reject(id);
});
To
$('[data-blog-reject]').on('click', function(event) {
event.stopPropagation();
var id = $(this).data('id');
reject(id);
});
$('[data-blog-remove]').on('click', function(event) {
event.stopPropagation();
var id = $(this).data('id');
remove(id);
});
Step 3: /joomla/administrator/components/com_easyblog/includes/post/post.php
Under "public function delete"
Changed
/**
* Deletes a post from the site
*
* @since 5.1
* @access public
*/
public function delete()
To
/**
* Deletes a post from the site
*
* @since 5.1
* @access public
*/
public function delete($deleteHistory=true)
AND
Changed
$this->deleteFeedHistory();
$this->deleteReactions();
To
if ($deleteHistory) {
$this->deleteFeedHistory();
}
$this->deleteReactions();
STEP 4 /joomla/administrator/components/com_easyblog/controllers/pending.php
Under "public function remove"
Changed
foreach ($ids as $id) {
$post = EB::post($id);
$post->delete();
}
To
foreach ($ids as $id) {
$post = EB::post($id);
$post->delete(false);
}
With those little edits, I get a "Delete" button in the pending posts page and clicking this removes the post but keeps the post history and doesn't send any emails.
Wonder whether the EB team will consider bring this into the official code. The Feature Request is a more complete solution but this will probably serve for most cases as well.